fixed async transport crash on close

Setting the stop event to close the transport thread before closing
freeing resources.
This commit is contained in:
Benoît LeBlanc 2013-06-20 10:04:41 -04:00
parent 19717162f0
commit f0bee517ac
1 changed files with 2 additions and 0 deletions

View File

@ -861,6 +861,8 @@ void transport_free(rdpTransport* transport)
{
if (transport != NULL)
{
SetEvent(transport->stopEvent);
if (transport->ReceiveBuffer)
Stream_Release(transport->ReceiveBuffer);