From 6064befd944036f950d02b437c4dd24e6cd31fed Mon Sep 17 00:00:00 2001 From: nyanpasu64 Date: Sat, 3 Dec 2022 20:10:48 -0800 Subject: [PATCH] Fix burning CPU with udev disabled on Flatpak Fixes #67355. (cherry picked from commit 0cbd1c85a96384ef93978661e408ce7c1b721847) --- platform/x11/joypad_linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/x11/joypad_linux.cpp b/platform/x11/joypad_linux.cpp index 005ba8fd3..864c8455c 100644 --- a/platform/x11/joypad_linux.cpp +++ b/platform/x11/joypad_linux.cpp @@ -222,8 +222,8 @@ void JoypadLinux::monitor_joypads() { } } closedir(input_directory); + usleep(1000000); // 1s } - usleep(1000000); // 1s } void JoypadLinux::close_joypads() {