[return checks] fix use of SetEvent

This commit is contained in:
akallabeth
2024-09-16 04:50:45 +02:00
parent 80e0c68dca
commit 7d67b8e204
60 changed files with 85 additions and 84 deletions

View File

@@ -679,7 +679,7 @@ static DWORD WINAPI pf_server_handle_peer(LPVOID arg)
case DRDYNVC_STATE_READY:
if (WaitForSingleObject(ps->dynvcReady, 0) == WAIT_TIMEOUT)
{
SetEvent(ps->dynvcReady);
(void)SetEvent(ps->dynvcReady);
}
break;
@@ -1029,7 +1029,7 @@ void pf_server_stop(proxyServer* server)
return;
/* signal main thread to stop and wait for the thread to exit */
SetEvent(server->stopEvent);
(void)SetEvent(server->stopEvent);
}
void pf_server_free(proxyServer* server)