summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/bt/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-12-02 15:35:11 +0300
committerDevaev Maxim <[email protected]>2020-12-02 15:35:11 +0300
commit7debaa677663fa22d00df1decd932f53b97786e9 (patch)
treecaf3123cc90167699852080e4c3d82d599dc13b4 /kvmd/plugins/hid/bt/__init__.py
parent5bc868662a7ef2b8959a04e6678c512797ebd7be (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/hid/bt/__init__.py')
-rw-r--r--kvmd/plugins/hid/bt/__init__.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/kvmd/plugins/hid/bt/__init__.py b/kvmd/plugins/hid/bt/__init__.py
index 25c3b823..72830d4f 100644
--- a/kvmd/plugins/hid/bt/__init__.py
+++ b/kvmd/plugins/hid/bt/__init__.py
@@ -20,7 +20,6 @@
# ========================================================================== #
-import os
import multiprocessing
import time
@@ -194,12 +193,7 @@ class Plugin(BaseHid): # pylint: disable=too-many-instance-attributes
# =====
def __server_worker(self) -> None: # pylint: disable=too-many-branches
- logger = get_logger(0)
-
- logger.info("Started HID pid=%d", os.getpid())
- os.setpgrp()
- aioproc.rename_process("hid")
-
+ logger = aioproc.settle("HID", "hid")
while not self.__stop_event.is_set():
try:
self.__server.run()