Break out of scan loop if can't find adapter on first run

This commit is contained in:
Ameer 2020-07-10 11:07:43 -04:00
parent d875341016
commit a885855ff4

View file

@ -243,6 +243,9 @@ void Adapter::Setup() {
}
libusb_free_device_list(devices, 1);
}
// Break out of the ScanThreadFunc() loop that is constantly looking for the device
// Assumes user has GC adapter plugged in before launch to use the adapter
detect_thread_running = false;
}
bool Adapter::CheckDeviceAccess(libusb_device* device) {