diff options
Diffstat (limited to 'common/rawaccel-io.hpp')
| -rw-r--r-- | common/rawaccel-io.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/rawaccel-io.hpp b/common/rawaccel-io.hpp index 74e2d1e..e8641d1 100644 --- a/common/rawaccel-io.hpp +++ b/common/rawaccel-io.hpp @@ -74,10 +74,7 @@ namespace rawaccel { CloseHandle(ra_handle); if (!success) { - if (auto err = GetLastError(); err != ERROR_BUSY) { - throw std::system_error(err, std::system_category(), "DeviceIoControl failed"); - } - throw cooldown_error(); + throw std::system_error(GetLastError(), std::system_category(), "DeviceIoControl failed"); } } |