mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
put_nowait
This commit is contained in:
@@ -36,7 +36,7 @@ class AioProcessNotifier:
|
||||
self.__queue: multiprocessing.queues.Queue = multiprocessing.Queue()
|
||||
|
||||
def notify(self) -> None:
|
||||
self.__queue.put(None)
|
||||
self.__queue.put_nowait(None)
|
||||
|
||||
async def wait(self) -> None:
|
||||
while not (await aiotools.run_async(self.__inner_wait)):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user