mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 01:51:53 +08:00
shielded some tasks
This commit is contained in:
@@ -66,7 +66,7 @@ class ExtrasInfoSubmanager(BaseInfoSubmanager):
|
||||
return None
|
||||
finally:
|
||||
if sui is not None:
|
||||
await sui.close()
|
||||
await asyncio.shield(sui.close())
|
||||
|
||||
def __get_extras_path(self, *parts: str) -> str:
|
||||
return os.path.join(self.__global_config.kvmd.info.extras, *parts)
|
||||
|
||||
@@ -116,7 +116,7 @@ class Snapshoter: # pylint: disable=too-many-instance-attributes
|
||||
logger.exception("Unhandled exception while taking snapshot")
|
||||
finally:
|
||||
self.__snapshoting = False
|
||||
await notifier.notify()
|
||||
await asyncio.shield(notifier.notify())
|
||||
|
||||
async def __wakeup(self) -> None:
|
||||
logger = get_logger(0)
|
||||
|
||||
Reference in New Issue
Block a user