mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2025-01-31 02:31:33 -08:00
Merge yuzu-emu#12610
This commit is contained in:
parent
7798494d1e
commit
e80c938e46
@ -256,8 +256,13 @@ Result ServerManager::WaitAndProcessImpl() {
|
|||||||
|
|
||||||
// Wait for a signal.
|
// Wait for a signal.
|
||||||
s32 out_index{-1};
|
s32 out_index{-1};
|
||||||
R_TRY(Kernel::KSynchronizationObject::Wait(m_system.Kernel(), &out_index, wait_objs.data(),
|
R_TRY_CATCH(Kernel::KSynchronizationObject::Wait(m_system.Kernel(), &out_index,
|
||||||
num_objs, -1));
|
wait_objs.data(), num_objs, -1)) {
|
||||||
|
R_CATCH(Kernel::ResultSessionClosed) {
|
||||||
|
// On session closed, index is updated and we don't want to return an error.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
R_END_TRY_CATCH;
|
||||||
ASSERT(out_index >= 0 && out_index < num_objs);
|
ASSERT(out_index >= 0 && out_index < num_objs);
|
||||||
|
|
||||||
// Set the output index.
|
// Set the output index.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user