mirror of https://github.com/PCSX2/pcsx2.git
InputManager: Release settings lock before shutting down the input source
This commit is contained in:
parent
2f46e5a840
commit
cd3e11bff7
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue