summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/win32-joystick.cpp')
-rw-r--r--opentrack/win32-joystick.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentrack/win32-joystick.cpp b/opentrack/win32-joystick.cpp
index a705adbc..6e64355c 100644
--- a/opentrack/win32-joystick.cpp
+++ b/opentrack/win32-joystick.cpp
@@ -135,8 +135,8 @@ void win32_joy_ctx::refresh(bool first)
{
if (!first)
{
- QMutexLocker l(&mtx);
-
+ // accessing struct Timer without a lock. worst can happen is seconds
+ // and nanoseconds getting out of sync. no big deal.
if (timer_joylist.elapsed_ms() < joylist_refresh_ms)
return;
timer_joylist.start();