Skip to content

Commit

Permalink
InputManager: Release settings lock before shutting down the input so…
Browse files Browse the repository at this point in the history
…urce
  • Loading branch information
CookiePLMonster authored and F0bes committed Jul 13, 2024
1 parent 2f46e5a commit cd3e11b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pcsx2/Input/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,10 @@ void InputManager::UpdateInputSourceState(SettingsInterface& si, std::unique_loc
{
if (s_input_sources[static_cast<u32>(type)])
{
settings_lock.unlock();
s_input_sources[static_cast<u32>(type)]->Shutdown();
settings_lock.lock();

s_input_sources[static_cast<u32>(type)].reset();
}
}
Expand Down

0 comments on commit cd3e11b

Please sign in to comment.