diff --git a/wayland_server.cpp b/wayland_server.cpp index 69493f74de..3bbf59f294 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -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();