Fix stop_application not working after Monado update

This commit is contained in:
Sapphire
2026-09-26 04:59:02 -05:00
parent c78bca4ddc
commit 40f2079268
+1 -2
View File
@@ -1329,8 +1329,7 @@ void wivrn_session::stop_application(std::optional<uint32_t> id, int64_t timeout
scoped_lock lock(mnd_ipc_server->global_state.lock);
for (auto & t: mnd_ipc_server->threads)
{
// Monado doesn't set state to IPC_THREAD_RUNNING
if (t.state != IPC_THREAD_STARTING)
if (t.state == IPC_THREAD_READY || t.state == IPC_THREAD_STOPPING)
continue;
uint32_t client_id = t.ics.client_state.id;