fixed exception on msd uploading abort

This commit is contained in:
Devaev Maxim 2019-11-16 19:53:05 +03:00
parent f0ffbe5b4a
commit cb6a6ed1d6
2 changed files with 0 additions and 2 deletions

View File

@ -343,7 +343,6 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
await self.__reload_state() await self.__reload_state()
await self.__changes_queue.put(None) await self.__changes_queue.put(None)
@aiotools.atomic
async def write_image_chunk(self, chunk: bytes) -> int: async def write_image_chunk(self, chunk: bytes) -> int:
assert self.__new_file assert self.__new_file
await aiotools.afile_write_now(self.__new_file, chunk) await aiotools.afile_write_now(self.__new_file, chunk)

View File

@ -337,7 +337,6 @@ class Plugin(BaseMsd): # pylint: disable=too-many-instance-attributes
self.__region.exit() self.__region.exit()
await self.__state_queue.put(await self.get_state()) await self.__state_queue.put(await self.get_state())
@aiotools.atomic
async def write_image_chunk(self, chunk: bytes) -> int: async def write_image_chunk(self, chunk: bytes) -> int:
assert self.__device_file assert self.__device_file
await aiotools.afile_write_now(self.__device_file, chunk) await aiotools.afile_write_now(self.__device_file, chunk)