Skip to content

Commit f7bde82

Browse files
committed
MbedClient: configureSocket, remove set_timeout call
1 parent b5bbd69 commit f7bde82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/SocketWrapper/src/MbedClient.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ void arduino::MbedClient::setSocket(Socket *_sock) {
6060
}
6161

6262
void arduino::MbedClient::configureSocket(Socket *_s) {
63-
_s->set_timeout(_timeout);
6463
_s->set_blocking(false);
6564
_s->getpeername(&address);
6665

@@ -214,7 +213,7 @@ size_t arduino::MbedClient::write(const uint8_t *buf, size_t size) {
214213
return 0;
215214

216215
sock->set_blocking(true);
217-
sock->set_timeout(SOCKET_TIMEOUT);
216+
sock->set_timeout(_timeout);
218217
int ret = sock->send(buf, size);
219218
sock->set_blocking(false);
220219
return ret >= 0 ? ret : 0;

0 commit comments

Comments
 (0)