mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[return checks] fix use of WaitForSingleObject
This commit is contained in:
@@ -163,7 +163,7 @@ int main(int argc, char* argv[])
|
||||
|
||||
WLog_INFO(TAG, "Starting server");
|
||||
wfreerdp_server_start(server);
|
||||
WaitForSingleObject(server->thread, INFINITE);
|
||||
(void)WaitForSingleObject(server->thread, INFINITE);
|
||||
WLog_INFO(TAG, "Stopping server");
|
||||
wfreerdp_server_stop(server);
|
||||
wfreerdp_server_free(server);
|
||||
|
||||
@@ -218,7 +218,7 @@ static DWORD WINAPI wf_peer_socket_listener(LPVOID lpParam)
|
||||
}
|
||||
|
||||
(void)SetEvent(context->socketEvent);
|
||||
WaitForSingleObject(context->socketSemaphore, INFINITE);
|
||||
(void)WaitForSingleObject(context->socketSemaphore, INFINITE);
|
||||
|
||||
if (context->socketClose)
|
||||
break;
|
||||
|
||||
@@ -80,7 +80,7 @@ DWORD WINAPI wf_update_thread(LPVOID lpParam)
|
||||
{
|
||||
// WLog_DBG(TAG, "Waiting for %d of %d", index + 1, wfi->activePeerCount);
|
||||
// WaitForSingleObject(wfi->updateSemaphore, INFINITE);
|
||||
WaitForSingleObject(wfi->updateSemaphore, 1000);
|
||||
(void)WaitForSingleObject(wfi->updateSemaphore, 1000);
|
||||
}
|
||||
|
||||
// WLog_DBG(TAG, "End of parallel sending");
|
||||
|
||||
Reference in New Issue
Block a user