mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
rpc_client_stop() : Avoid waiting infinitely for rpc client thread if connection failure occurs while in "synchronous receive" mode.
This commit is contained in:
parent
e9653519fb
commit
9e859ad11f
@ -599,9 +599,12 @@ int rpc_client_start(rdpRpc* rpc)
|
||||
|
||||
int rpc_client_stop(rdpRpc* rpc)
|
||||
{
|
||||
if (rpc->client->SynchronousReceive == FALSE)
|
||||
{
|
||||
SetEvent(rpc->client->StopEvent);
|
||||
|
||||
WaitForSingleObject(rpc->client->Thread, INFINITE);
|
||||
}
|
||||
|
||||
rpc_client_free(rpc);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user