diff options
| author | nyanpasu64 <nyanpasu64@tuta.io> | 2023-06-18 14:28:26 -0700 |
|---|---|---|
| committer | nyanpasu64 <nyanpasu64@tuta.io> | 2023-07-05 20:38:22 -0700 |
| commit | afb5eff42685a0b5f2a91ed64237aaf7e2aa9468 (patch) | |
| tree | 2d1740731ab751e5676fd4b43acc785e6887c321 /Source/Core/InputCommon/GCAdapter.cpp | |
| parent | 54850e936c4fb3d78d6dfc627822a2c495262c1b (diff) | |
Don't burn a CPU core and spam logs when GC Adapter fails
Diffstat (limited to 'Source/Core/InputCommon/GCAdapter.cpp')
| -rw-r--r-- | Source/Core/InputCommon/GCAdapter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index 21a1255fb0..cacb73bc79 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -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); |
