mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
using shield_fg() in atomic (now atomic_fg)
This commit is contained in:
@@ -126,13 +126,13 @@ class JanusRunner: # pylint: disable=too-many-instance-attributes
|
||||
|
||||
# =====
|
||||
|
||||
@aiotools.atomic
|
||||
@aiotools.atomic_fg
|
||||
async def __start_janus(self, netcfg: _Netcfg) -> None:
|
||||
get_logger(0).info("Starting Janus ...")
|
||||
assert not self.__janus_task
|
||||
self.__janus_task = asyncio.create_task(self.__janus_task_loop(netcfg))
|
||||
|
||||
@aiotools.atomic
|
||||
@aiotools.atomic_fg
|
||||
async def __stop_janus(self) -> None:
|
||||
if self.__janus_task:
|
||||
get_logger(0).info("Stopping Janus ...")
|
||||
|
||||
Reference in New Issue
Block a user