summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/relay
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-26 16:02:10 +0300
committerDevaev Maxim <[email protected]>2021-05-26 16:02:10 +0300
commit640547d441027daf6308d2861dd42c828a6ff611 (patch)
treeca84c3353f2282943e49dbc6658637fa1d936a1a /kvmd/plugins/msd/relay
parentd076bbe6c3d347db2f45f57213fb7047b081c7db (diff)
sync
Diffstat (limited to 'kvmd/plugins/msd/relay')
-rw-r--r--kvmd/plugins/msd/relay/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvmd/plugins/msd/relay/__init__.py b/kvmd/plugins/msd/relay/__init__.py
index f5af6f80..659594d8 100644
--- a/kvmd/plugins/msd/relay/__init__.py
+++ b/kvmd/plugins/msd/relay/__init__.py
@@ -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")