From 4ec79966d8f5bb7aba778335bff51066d393d2dc Mon Sep 17 00:00:00 2001 From: Alan Griffiths Date: Thu, 12 Oct 2023 12:25:40 +0100 Subject: [PATCH] Stop the Mir server from the main loop --- src/miral/runner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/miral/runner.cpp b/src/miral/runner.cpp index 2458aab3a10..0f90af159de 100644 --- a/src/miral/runner.cpp +++ b/src/miral/runner.cpp @@ -258,7 +258,7 @@ void miral::MirRunner::stop() if (auto const server = self->weak_server.lock()) { - server->stop(); + server->the_main_loop()->enqueue(this, [server] { server->stop(); }); } }