From e8d40280cddc5e08f0c79fd9276f400ef0fadf66 Mon Sep 17 00:00:00 2001 From: Etaash Mathamsetty Date: Wed, 1 May 2024 22:52:07 -0400 Subject: [PATCH] fix locking in device_info --- src/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.cpp b/src/device.cpp index 66f50e38..e5e92bce 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -88,8 +88,8 @@ void device_update(const struct overlay_params& params){ void device_info () { - device_count = 0; std::unique_lock l(device_lock); + device_count = 0; device_data.clear(); //gamepad counters int xbox_counter = 0;