Merge pull request #3930 from realjiangms/fix_shadow_thread_leak
server/shadow: close the thread handle so that it is detached because…
This commit is contained in:
commit
9645123a53
@ -1778,6 +1778,12 @@ BOOL shadow_client_accepted(freerdp_listener* listener, freerdp_peer* peer)
|
||||
freerdp_peer_context_free(peer);
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Close the thread handle to make it detached. */
|
||||
CloseHandle(client->thread);
|
||||
client->thread = NULL;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user