mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fixed exception on msd uploading abort
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user