Fix burning CPU with udev disabled on Flatpak

Fixes #67355.

(cherry picked from commit 0cbd1c85a9)
This commit is contained in:
nyanpasu64 2022-12-03 20:10:48 -08:00 committed by Haoyu Qiu
parent 9ac09dfb64
commit 8f5ccfa21f

View file

@ -222,9 +222,9 @@ void JoypadLinux::monitor_joypads() {
} }
} }
closedir(input_directory); closedir(input_directory);
}
usleep(1000000); // 1s usleep(1000000); // 1s
} }
}
void JoypadLinux::close_joypads() { void JoypadLinux::close_joypads() {
for (int i = 0; i < JOYPADS_MAX; i++) { for (int i = 0; i < JOYPADS_MAX; i++) {