From cb6a6ed1d64847c578f42253716f9263b44e091e Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 16 Nov 2019 19:53:05 +0300 Subject: fixed exception on msd uploading abort --- kvmd/plugins/msd/otg/__init__.py | 1 - kvmd/plugins/msd/relay.py | 1 - 2 files changed, 2 deletions(-) (limited to 'kvmd') diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py index d435706a..d8a5e9b7 100644 --- a/kvmd/plugins/msd/otg/__init__.py +++ b/kvmd/plugins/msd/otg/__init__.py @@ -343,7 +343,6 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes await self.__reload_state() await self.__changes_queue.put(None) - @aiotools.atomic async def write_image_chunk(self, chunk: bytes) -> int: assert self.__new_file await aiotools.afile_write_now(self.__new_file, chunk) diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py index 46b5a371..1bec7d48 100644 --- a/kvmd/plugins/msd/relay.py +++ b/kvmd/plugins/msd/relay.py @@ -337,7 +337,6 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes self.__region.exit() await self.__state_queue.put(await self.get_state()) - @aiotools.atomic async def write_image_chunk(self, chunk: bytes) -> int: assert self.__device_file await aiotools.afile_write_now(self.__device_file, chunk) -- cgit v1.2.3