Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

‎libraries/SocketWrapper/src/MbedClient.cpp‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /