Skip to content

Commit 0164057

Browse files
committed
Issue witnessmenow#12: Port of a5299f4
1 parent e7d0c39 commit 0164057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UniversalTelegramBot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ bool UniversalTelegramBot::readHTTPAnswer(String &body, String &headers) {
107107
bool currentLineIsBlank = true;
108108
bool responseReceived = false;
109109

110-
while (millis() - now < waitForResponse) {
110+
while (millis() - now < longPoll * 1000 + waitForResponse) {
111111
while (client->available()) {
112112
char c = client->read();
113113
responseReceived = true;

0 commit comments

Comments
 (0)