mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
fixed exception on msd uploading abort
This commit is contained in:
parent
f0ffbe5b4a
commit
cb6a6ed1d6
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user