mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:11:45 +03:00
asyn-thrdd: fix --disable-socketpair builds
Regression from #18339 Reported-by: Marcel Raad Closes #18347
This commit is contained in:
parent
6b111f0a8c
commit
cbd5d2507a
1 changed files with 2 additions and 0 deletions
|
|
@ -524,11 +524,13 @@ static void async_thrdd_shutdown(struct Curl_easy *data)
|
|||
|
||||
Curl_mutex_acquire(&addr_ctx->mutx);
|
||||
done = addr_ctx->thrd_done;
|
||||
#ifndef CURL_DISABLE_SOCKETPAIR
|
||||
/* We are no longer interested in wakeups */
|
||||
if(addr_ctx->sock_pair[1] != CURL_SOCKET_BAD) {
|
||||
wakeup_close(addr_ctx->sock_pair[1]);
|
||||
addr_ctx->sock_pair[1] = CURL_SOCKET_BAD;
|
||||
}
|
||||
#endif
|
||||
Curl_mutex_release(&addr_ctx->mutx);
|
||||
|
||||
DEBUGASSERT(addr_ctx->thread_hnd != curl_thread_t_null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue