Skip to content

Commit

Permalink
Fix key error on metainfo_requests pop
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Dec 2, 2021
1 parent f5615d1 commit c7424cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ async def get_metainfo(self, infohash, timeout=30, hops=None, url=None):
self.metainfo_requests[infohash][1] -= 1
if self.metainfo_requests[infohash][1] <= 0:
await self.remove_download(download, remove_content=True)
self.metainfo_requests.pop(infohash)
self.metainfo_requests.pop(infohash, None)

return metainfo

Expand Down

0 comments on commit c7424cc

Please sign in to comment.