1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

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.
This commit is contained in:
david gauchard 2018-10-18 00:32:54 +02:00 committed by Earle F. Philhower, III
parent ad7cb635ed
commit e549355221

View File

@ -333,7 +333,7 @@ public:
last_sent = millis();
}
yield();
esp_yield(); // from sys or os context
if ((state() != ESTABLISHED) || (sndbuf == TCP_SND_BUF)) {
break;