Don't bypass PubSub_OnChannelDisconnected in case of channel error

This commit is contained in:
Simon Nivault
2025-06-17 18:20:57 +02:00
parent d5bfa9d8f8
commit 5d32afcdd0

View File

@@ -881,9 +881,6 @@ UINT freerdp_channels_disconnect(rdpChannels* channels, freerdp* instance)
CHANNEL_EVENT_DISCONNECTED, 0, 0);
}
if (getChannelError(instance->context) != CHANNEL_RC_OK)
continue;
pChannelOpenData = &channels->openDataList[index];
EventArgsInit(&e, "freerdp");
e.name = pChannelOpenData->name;