Skip to content

Commit 3c84f49

Browse files
authored
Merge pull request #3402 from geky/nsapi-fix-socket-close
nsapi - Fixed open/close issue in Socket
2 parents a915fa8 + 3643b59 commit 3c84f49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/netsocket/Socket.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ nsapi_error_t Socket::close()
6060
_socket = 0;
6161
ret = _stack->socket_close(socket);
6262
}
63+
_stack = 0;
6364

6465
// Wakeup anything in a blocking operation
6566
// on this socket

0 commit comments

Comments
 (0)