diff options
author | Maxim Devaev <[email protected]> | 2022-08-07 19:35:08 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-08-07 19:35:08 +0300 |
commit | e37a7254d5cf7e4cfa5dcfbbaf5b0e9d7474d154 (patch) | |
tree | c25210abfceb0da0725798105a389c5598694ff7 /kvmd/plugins/hid | |
parent | fdc3edfa799b21f04a83676459bab7a4e67b056f (diff) |
using shield_fg() in atomic (now atomic_fg)
Diffstat (limited to 'kvmd/plugins/hid')
-rw-r--r-- | kvmd/plugins/hid/_mcu/__init__.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/hid/bt/__init__.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/_mcu/__init__.py b/kvmd/plugins/hid/_mcu/__init__.py index 595abbc4..0de017df 100644 --- a/kvmd/plugins/hid/_mcu/__init__.py +++ b/kvmd/plugins/hid/_mcu/__init__.py @@ -234,7 +234,7 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many- async def reset(self) -> None: self.__reset_required_event.set() - @aiotools.atomic + @aiotools.atomic_fg async def cleanup(self) -> None: if self.is_alive(): get_logger(0).info("Stopping HID daemon ...") diff --git a/kvmd/plugins/hid/bt/__init__.py b/kvmd/plugins/hid/bt/__init__.py index 5b6a9fc7..ce33fd26 100644 --- a/kvmd/plugins/hid/bt/__init__.py +++ b/kvmd/plugins/hid/bt/__init__.py @@ -164,7 +164,7 @@ class Plugin(BaseHid): # pylint: disable=too-many-instance-attributes self.clear_events() self.__server.queue_event(ResetEvent()) - @aiotools.atomic + @aiotools.atomic_fg async def cleanup(self) -> None: if self.__proc is not None: if self.__proc.is_alive(): |