mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
(bool)WiFiClient needs to return ::connected() since ClientContext is not destroyed on ::stop() (#4422)
This commit is contained in:
parent
1349bafd83
commit
a2e7c7d016
@ -290,9 +290,9 @@ uint8_t WiFiClient::status()
|
|||||||
return _client->state();
|
return _client->state();
|
||||||
}
|
}
|
||||||
|
|
||||||
WiFiClient::operator bool()
|
WiFiClient::operator bool()
|
||||||
{
|
{
|
||||||
return _client != 0;
|
return connected();
|
||||||
}
|
}
|
||||||
|
|
||||||
IPAddress WiFiClient::remoteIP()
|
IPAddress WiFiClient::remoteIP()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user