[wayland] Dispatch the WaylandServer once more before killing internal client

This is needed to not deadlock during tear down in case the client wants
to dispatch events and the server is in wait for client.
icc-effect-5.14.5
Martin Gräßlin 2015-10-22 10:07:02 +02:00
parent 3619d58044
commit 7253235a28
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ WaylandServer::WaylandServer(QObject *parent)
WaylandServer::~WaylandServer()
{
if (m_internalConnection.client) {
dispatch();
m_internalConnection.client->deleteLater();
m_internalConnection.clientThread->quit();
m_internalConnection.clientThread->wait();