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:
parent
2c40d82459
commit
33e5ca44df
@ -274,6 +274,9 @@ class ClientContext {
|
||||
if(pb == 0) // connection closed
|
||||
{
|
||||
DEBUGV(":rcl\r\n");
|
||||
if (_send_waiting) {
|
||||
esp_schedule();
|
||||
}
|
||||
abort();
|
||||
return ERR_ABRT;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user