[client,sdl] fix connection dialog reset

only clean up on sdl thread quit to show error dialogs after the RDP
connection already terminated.
This commit is contained in:
Armin Novak 2023-12-21 00:01:32 +01:00 committed by David Fort
parent bb8c08f06e
commit c395094f73

View File

@ -1179,11 +1179,6 @@ static void sdl_post_final_disconnect(freerdp* instance)
return;
auto context = get_context(instance->context);
std::lock_guard<CriticalSection> lock(context->critical);
if (context->connection_dialog)
context->connection_dialog->wait(true);
context->connection_dialog.reset();
}
/* RDP main loop.