1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

smp: connect3: hold pt lock when removing failed connect attempt

This commit is contained in:
Andy Green 2021-01-01 14:55:13 +00:00
parent 0d720082fb
commit 38496b9184

View file

@ -541,7 +541,9 @@ connect_to:
lwsl_info("%s: abandoning connect due to timeout\n", __func__);
try_next_dns_result_fds:
lws_pt_lock(pt, __func__);
__remove_wsi_socket_from_fds(wsi);
lws_pt_unlock(pt);
try_next_dns_result_closesock:
/*