[1mdiff --git a/src/platform/posix/socket.c b/src/platform/posix/socket.c[m
[1mindex 047ce16..2a0f9d2 100644[m
[1m--- a/src/platform/posix/socket.c[m
[1m+++ b/src/platform/posix/socket.c[m
[36m@@ -365,6 +365,7 @@[m [mstatic iThreadResult connectAsync_Socket_(iThread *thd) {[m
/* Ran out of addresses. */[m
break;[m
}[m
[32m+[m[32m lock_Mutex(&d->mutex);[m
iDebug("[Socket] connecting async to %s (addrSize:%u index:%d)\n",[m
cstrCollect_String(toString_SockAddr(addr)),[m
addrSize, indexInFamily);[m
[36m@@ -375,6 +376,7 @@[m [mstatic iThreadResult connectAsync_Socket_(iThread *thd) {[m
}[m
iDebug("[Socket] family:%d type:%d protocol:%d\n", sp.family, sp.type, sp.protocol);[m
d->fd = socket(sp.family, sp.type, sp.protocol);[m
[32m+[m[32m unlock_Mutex(&d->mutex);[m
if (!setNonBlocking_Socket_(d, iTrue)) {[m
/* Wait indefinitely. */[m
rc = connect(d->fd, addr, addrSize);[m
text/plain
This content has been proxied by September (ba2dc).