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:
parent
ad7cb635ed
commit
e549355221
@ -333,7 +333,7 @@ public:
|
||||
last_sent = millis();
|
||||
}
|
||||
|
||||
yield();
|
||||
esp_yield(); // from sys or os context
|
||||
|
||||
if ((state() != ESTABLISHED) || (sndbuf == TCP_SND_BUF)) {
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user