summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/otg/device.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/hid/otg/device.py')
-rw-r--r--kvmd/plugins/hid/otg/device.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/otg/device.py b/kvmd/plugins/hid/otg/device.py
index 44c286cb..45681aba 100644
--- a/kvmd/plugins/hid/otg/device.py
+++ b/kvmd/plugins/hid/otg/device.py
@@ -126,7 +126,10 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in
def _clear_queue(self) -> None:
while not self.__events_queue.empty():
- self.__events_queue.get_nowait()
+ try:
+ self.__events_queue.get_nowait()
+ except queue.Empty:
+ break
def _ensure_write(self, report: bytes, reopen: bool=False, close: bool=False) -> bool:
if reopen: