1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

WiFiClient: fix write behaviour when connection is closed by remote side

Don't wait for data to be ACKed if we have just called abort().
This commit is contained in:
Ivan Grokhotkov 2016-03-02 17:53:42 +03:00
parent 2c40d82459
commit 33e5ca44df

View File

@ -274,6 +274,9 @@ class ClientContext {
if(pb == 0) // connection closed if(pb == 0) // connection closed
{ {
DEBUGV(":rcl\r\n"); DEBUGV(":rcl\r\n");
if (_send_waiting) {
esp_schedule();
}
abort(); abort();
return ERR_ABRT; return ERR_ABRT;
} }