Skip to content

Commit 76f2cbd

Browse files
committed
removing logic around running the client disconnect code
1 parent 6f6f34d commit 76f2cbd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,10 +693,8 @@ bool UniversalTelegramBot::sendChatAction(String chat_id, String text) {
693693
}
694694

695695
void UniversalTelegramBot::closeClient(){
696-
#ifdef ESP32
697696
if(client->connected()){
698697
if(_debug){Serial.println(F("Closing client")); }
699698
client->stop();
700699
}
701-
#endif
702700
}

0 commit comments

Comments
 (0)