From 52e117df3c1fbfc29524ca9d06e49605b3ec5992 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Wed, 4 Mar 2020 00:26:45 +0300 Subject: put_nowait --- kvmd/plugins/hid/otg/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmd/plugins/hid/otg') diff --git a/kvmd/plugins/hid/otg/device.py b/kvmd/plugins/hid/otg/device.py index 37cb7b07..2986ce4e 100644 --- a/kvmd/plugins/hid/otg/device.py +++ b/kvmd/plugins/hid/otg/device.py @@ -124,7 +124,7 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in self.join() def _queue_event(self, event: BaseEvent) -> None: - self.__events_queue.put(event) + self.__events_queue.put_nowait(event) def _ensure_write(self, report: bytes, reopen: bool=False, close: bool=False) -> bool: if reopen: -- cgit v1.2.3