Skip to content

Commit 33e5ca4

Browse files
committed
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().
1 parent 2c40d82 commit 33e5ca4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/ESP8266WiFi/src/include/ClientContext.h

+3
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ class ClientContext {
274274
if(pb == 0) // connection closed
275275
{
276276
DEBUGV(":rcl\r\n");
277+
if (_send_waiting) {
278+
esp_schedule();
279+
}
277280
abort();
278281
return ERR_ABRT;
279282
}

0 commit comments

Comments
 (0)