mirror of https://github.com/FreeRDP/FreeRDP
fixed async transport crash on close
Setting the stop event to close the transport thread before closing freeing resources.
This commit is contained in:
parent
19717162f0
commit
f0bee517ac
|
@ -861,6 +861,8 @@ void transport_free(rdpTransport* transport)
|
|||
{
|
||||
if (transport != NULL)
|
||||
{
|
||||
SetEvent(transport->stopEvent);
|
||||
|
||||
if (transport->ReceiveBuffer)
|
||||
Stream_Release(transport->ReceiveBuffer);
|
||||
|
||||
|
|
Loading…
Reference in New Issue