Skip to content

Commit 4ea49f5

Browse files
committed
Fix TCPServer::accept()
Missing lock caused Mutex unlock failure
1 parent 48c149b commit 4ea49f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/netsocket/TCPServer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ TCPServer::~TCPServer()
2828

2929
nsapi_error_t TCPServer::accept(TCPSocket *connection, SocketAddress *address)
3030
{
31+
_lock.lock();
3132
nsapi_error_t ret;
3233

3334
while (true) {

0 commit comments

Comments
 (0)