Don't burn a CPU core and spam logs when GC Adapter fails
This commit is contained in:
1 parent
54850e936c
commit
afb5eff426
1 file changed
+4
@@ -211,6 +211,10 @@ static void ReadThreadFunc()
|
|||||||
ERROR_LOG_FMT(CONTROLLERINTERFACE, "Read: libusb_interrupt_transfer failed: {}",
|
ERROR_LOG_FMT(CONTROLLERINTERFACE, "Read: libusb_interrupt_transfer failed: {}",
|
||||||
LibusbUtils::ErrorWrap(error));
|
LibusbUtils::ErrorWrap(error));
|
||||||
}
|
}
|
||||||
|
if (error == LIBUSB_ERROR_IO)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
ProcessInputPayload(input_buffer.data(), payload_size);
|
ProcessInputPayload(input_buffer.data(), payload_size);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user