Skip to content

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Jan 18, 2018

fix #4078

@devyte devyte merged commit dd00db1 into esp8266:master Jan 19, 2018
@d-a-v d-a-v deleted the 4078 branch January 19, 2018 00:30
@d-a-v d-a-v restored the 4078 branch January 19, 2018 14:04
@d-a-v d-a-v deleted the 4078 branch January 19, 2018 15:01
igrr added a commit that referenced this pull request Feb 19, 2018
Reported in #4078.

WiFiClient::stopAll, called from a WiFi disconnected event handler,
could be called while WiFiClient::connect was in progress. This issue
was initially fixed in #4194, by testing `this` pointer for being
non-null in ClientContext::connect.

This change delegates deletion of ClientContext to WiFiClient
destructor. WiFiClient::stop only calls ClientContext::stop, which
closes/aborts the connection.
igrr added a commit that referenced this pull request Feb 20, 2018
Reported in #4078.

WiFiClient::stopAll, called from a WiFi disconnected event handler,
could be called while WiFiClient::connect was in progress. This issue
was initially fixed in #4194, by testing `this` pointer for being
non-null in ClientContext::connect.

This change delegates deletion of ClientContext to WiFiClient
destructor. WiFiClient::stop only calls ClientContext::stop, which
closes/aborts the connection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception in WiFiClient when WiFi is disconnected

2 participants