Skip to content

Commit e549355

Browse files
d-a-vearlephilhower
authored andcommitted
Fix: WiFiClient::flush() yields but can be called from events (#5254)
Fix bug introduced by #5167 which replaced delay() by yield(). That should have been esp_yield() which is the one delay() calls and is safe from either SYS or CONT contexts. Fixes #5237.
1 parent ad7cb63 commit e549355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/include/ClientContext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class ClientContext
333333
last_sent = millis();
334334
}
335335

336-
yield();
336+
esp_yield(); // from sys or os context
337337

338338
if ((state() != ESTABLISHED) || (sndbuf == TCP_SND_BUF)) {
339339
break;

0 commit comments

Comments
 (0)