Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check ClientContext's this and _pcb once out of the ::connect() delay #4194

Merged
merged 2 commits into from
Jan 19, 2018

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