Don't burn a CPU core and spam logs when GC Adapter fails

This commit is contained in:
nyanpasu64 2023-06-18 14:28:26 -07:00
parent 54850e936c
commit afb5eff426

View File

@ -211,6 +211,10 @@ static void ReadThreadFunc()
ERROR_LOG_FMT(CONTROLLERINTERFACE, "Read: libusb_interrupt_transfer failed: {}",
LibusbUtils::ErrorWrap(error));
}
if (error == LIBUSB_ERROR_IO)
{
break;
}
ProcessInputPayload(input_buffer.data(), payload_size);