mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
sync
This commit is contained in:
@@ -275,6 +275,7 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
|
||||
try:
|
||||
if self.__device_file:
|
||||
get_logger().info("Closing device file ...")
|
||||
await aiofs.afile_sync(self.__device_file)
|
||||
await self.__device_file.close() # type: ignore
|
||||
except Exception:
|
||||
get_logger().exception("Can't close device file")
|
||||
|
||||
Reference in New Issue
Block a user