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 committed by Nayla Hanegan
parent 34571640d3
commit 6c07e4796e
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D

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);