mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
check ClientContext's this and _pcb once out of the ::connect() delay (#4194)
fix #4078
This commit is contained in:
parent
d5c43f0102
commit
dd00db1b8c
@ -131,6 +131,11 @@ public:
|
||||
_op_start_time = millis();
|
||||
// This delay will be interrupted by esp_schedule in the connect callback
|
||||
delay(_timeout_ms);
|
||||
// WiFi may have vanished during the delay (#4078)
|
||||
if (!this || !_pcb) {
|
||||
DEBUGV(":vnsh\r\n");
|
||||
return 0;
|
||||
}
|
||||
_connect_pending = 0;
|
||||
if (state() != ESTABLISHED) {
|
||||
abort();
|
||||
|
Loading…
x
Reference in New Issue
Block a user