[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:
parent
bb8c08f06e
commit
c395094f73
@ -1179,11 +1179,6 @@ static void sdl_post_final_disconnect(freerdp* instance)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
auto context = get_context(instance->context);
|
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.
|
/* RDP main loop.
|
||||||
|
Loading…
Reference in New Issue
Block a user