mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
improved aiotools.run()
This commit is contained in:
@@ -61,10 +61,7 @@ class JanusRunner: # pylint: disable=too-many-instance-attributes
|
||||
def run(self) -> None:
|
||||
logger = get_logger(0)
|
||||
logger.info("Starting Janus Runner ...")
|
||||
try:
|
||||
aiotools.run(self.__run())
|
||||
except (SystemExit, KeyboardInterrupt):
|
||||
aiotools.run(self.__stop_janus())
|
||||
aiotools.run(self.__run(), self.__stop_janus())
|
||||
logger.info("Bye-bye")
|
||||
|
||||
# =====
|
||||
|
||||
Reference in New Issue
Block a user