[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.
This commit is contained in:
Martin Gräßlin 2015-10-22 10:07:02 +02:00
parent 3619d58044
commit 7253235a28

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();