Skip to content

Commit 636b20e

Browse files
committed
MbedClient: check for client and network status in connected()
1 parent df16fa7 commit 636b20e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/src/MbedClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void arduino::MbedClient::stop() {
305305
}
306306

307307
uint8_t arduino::MbedClient::connected() {
308-
return ((_status) || (available() > 0));
308+
return ((status() == true) || (available() > 0));
309309
}
310310

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

0 commit comments

Comments
 (0)