fix: use-after-move of bus connection in xdg portal detection (#47008)

This commit is contained in:
Robo
2025-05-09 18:32:08 +09:00
committed by GitHub
parent 2cbd968da5
commit 8e8d3a4f3e

View File

@@ -86,8 +86,9 @@ void CheckPortalAvailabilityOnBusThread() {
<< (g_portal_available ? "yes" : "no");
flag->Set();
bus->ShutdownAndBlock();
bus.reset();
},
std::move(bus), flag));
bus, flag));
}
} // namespace