Skip to content

Commit 810ab68

Browse files
committed
Fix WiFiClientSecure::connected (#43)
thanks @whyameye
1 parent 7384c38 commit 810ab68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/ESP8266WiFi/src/WiFiClientSecure.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ int WiFiClientSecure::available() {
267267
}
268268

269269
uint8_t WiFiClientSecure::connected() {
270+
if (!_client)
271+
return 0;
272+
270273
if (_client->state() == ESTABLISHED)
271274
return 1;
272275

0 commit comments

Comments
 (0)