Skip to content

Commit

Permalink
removing logic around running the client disconnect code
Browse files Browse the repository at this point in the history
  • Loading branch information
witnessmenow committed Feb 15, 2018
1 parent 6f6f34d commit 76f2cbd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/UniversalTelegramBot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,8 @@ bool UniversalTelegramBot::sendChatAction(String chat_id, String text) {
}

void UniversalTelegramBot::closeClient(){
#ifdef ESP32
if(client->connected()){
if(_debug){Serial.println(F("Closing client")); }
client->stop();
}
#endif
}

0 comments on commit 76f2cbd

Please sign in to comment.