diff options
Diffstat (limited to 'kvmd/plugins/hid/otg')
-rw-r--r-- | kvmd/plugins/hid/otg/device.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/otg/device.py b/kvmd/plugins/hid/otg/device.py index b777dd56..e4ed5500 100644 --- a/kvmd/plugins/hid/otg/device.py +++ b/kvmd/plugins/hid/otg/device.py @@ -162,7 +162,11 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in logger.error("HID-%s write() error: written (%s) != report length (%d)", self.__name, written, len(report)) except Exception as err: - if isinstance(err, OSError) and err.errno == errno.EAGAIN: # pylint: disable=no-member + if isinstance(err, OSError) and ( + # https://github.com/raspberrypi/linux/commit/61b7f805dc2fd364e0df682de89227e94ce88e25 + err.errno == errno.EAGAIN + or err.errno == errno.ESHUTDOWN + ): logger.debug("HID-%s busy/unplugged (write): %s: %s", self.__name, type(err).__name__, err) else: |