Merge pull request #69563 from nyanpasu64/patch-1

Fix burning CPU with udev disabled on Flatpak
This commit is contained in:
Rémi Verschelde 2022-12-05 18:07:02 +01:00
commit 14f23df1a3
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

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