Skip to content

Commit 20193dd

Browse files
committed
MbedClient: check for client and network status in connected()
1 parent bcae121 commit 20193dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/src/MbedClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void arduino::MbedClient::stop() {
301301
}
302302

303303
uint8_t arduino::MbedClient::connected() {
304-
return ((_status) || (available() > 0));
304+
return ((status() == true) || (available() > 0));
305305
}
306306

307307
IPAddress arduino::MbedClient::remoteIP() {

0 commit comments

Comments
 (0)