mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
InputCommon: Fix deadlock in EmulatedController::UpdateReferences().
This commit is contained in:
parent
48c9c224cf
commit
b8ca1b2907
2 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,7 @@ std::unique_lock<std::recursive_mutex> EmulatedController::GetStateLock()
|
|||
|
||||
void EmulatedController::UpdateReferences(const ControllerInterface& devi)
|
||||
{
|
||||
const auto lock = GetStateLock();
|
||||
std::scoped_lock lk(s_get_state_mutex, devi.GetDevicesMutex());
|
||||
|
||||
m_default_device_is_connected = devi.HasConnectedDevice(m_default_device);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue