InputManager: Release settings lock before shutting down the input source

This commit is contained in:
Silent 2024-07-13 12:47:54 +02:00 committed by Ty
parent 2f46e5a840
commit cd3e11bff7
1 changed files with 3 additions and 0 deletions

View File

@ -1605,7 +1605,10 @@ void InputManager::UpdateInputSourceState(SettingsInterface& si, std::unique_loc
{ {
if (s_input_sources[static_cast<u32>(type)]) if (s_input_sources[static_cast<u32>(type)])
{ {
settings_lock.unlock();
s_input_sources[static_cast<u32>(type)]->Shutdown(); s_input_sources[static_cast<u32>(type)]->Shutdown();
settings_lock.lock();
s_input_sources[static_cast<u32>(type)].reset(); s_input_sources[static_cast<u32>(type)].reset();
} }
} }