forked from Clones/Controlify
fix many crashes
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user