fix many crashes

This commit is contained in:
isXander committed 2023-04-21 16:43:43 +01:00
1 parent 996dd47cf4
commit 3c24bd4bb7
5 files changed
+24 -12

No files matched your search

@@ -40,6 +40,10 @@ public class ControllerHIDService {
}
public ControllerHIDInfo fetchType() {
if (disabled) {
return new ControllerHIDInfo(ControllerType.UNKNOWN, Optional.empty());
}
doScanOnThisThread();
Pair<HidDevice, HIDIdentifier> hid = unconsumedControllerHIDs.poll();