Skip to content

Commit cd5d1aa

Browse files
committed
MbedClient: configure socket timeout before calling close()
1 parent 546529a commit cd5d1aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/SocketWrapper/src/MbedClient.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ void arduino::MbedClient::stop() {
280280
if (_own_socket) {
281281
delete sock;
282282
} else {
283+
sock->set_timeout(_timeout);
283284
sock->close();
284285
}
285286
sock = nullptr;

0 commit comments

Comments
 (0)