nit: ensure shutdown event is raised before thread join

This commit is contained in:
Conn O'Griofa committed 2026-09-28 02:51:27 +01:00
1 parent f1285e63f7
commit 033f9bc40f
1 file changed
+4
+4
View File
@@ -1507,6 +1507,10 @@ namespace platf {
~deinit_t() override {
try {
if (portal::xdg_worker.joinable()) {
// Make sure the worker's response loop sees shutdown before we block on join().
if (mail::man) {
mail::man->event<bool>(mail::shutdown)->raise(true);
}
portal::xdg_worker.join();
}
} catch (const std::exception &err) {