core: Clear message queue to reset its closed state

This commit is contained in:
Martin Fleisz 2021-04-08 13:42:06 +02:00 committed by akallabeth
parent e2920d7259
commit 6fa9896474

View File

@ -266,6 +266,8 @@ UINT freerdp_channels_pre_connect(rdpChannels* channels, freerdp* instance)
int index; int index;
CHANNEL_CLIENT_DATA* pChannelClientData; CHANNEL_CLIENT_DATA* pChannelClientData;
MessageQueue_Clear(channels->queue);
for (index = 0; index < channels->clientDataCount; index++) for (index = 0; index < channels->clientDataCount; index++)
{ {
pChannelClientData = &channels->clientDataList[index]; pChannelClientData = &channels->clientDataList[index];