bugfix
This commit is contained in:
parent
4213df2df1
commit
a914866044
@ -87,7 +87,7 @@ and finish_time = start_time"""
|
|||||||
|
|
||||||
async def check_download_finished(self, status):
|
async def check_download_finished(self, status):
|
||||||
s = status
|
s = status
|
||||||
if s.totalLength == s.completedLength:
|
if s.totalLength > 0 and s.totalLength == s.completedLength:
|
||||||
await self.save_finished_task(s.gid)
|
await self.save_finished_task(s.gid)
|
||||||
await self.file_downloaded(s.info.name)
|
await self.file_downloaded(s.info.name)
|
||||||
await self.remove_task(s.gid)
|
await self.remove_task(s.gid)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user