Skip to content

Commit

Permalink
Ensure the FakeBep33DHTSession uses the TorrentChecker timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Mar 31, 2021
1 parent e1e2fab commit e4a4bb6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,6 @@ async def connect_to_tracker(self):
:return: A deferred that fires with the health information.
"""
try:
async with async_timeout.timeout(self.timeout):
return await self._session.dlmgr.dht_health_manager.get_health(self.infohash)
return await self._session.dlmgr.dht_health_manager.get_health(self.infohash, timeout=self.timeout)
except TimeoutError:
self.failed(msg='request timed out')

0 comments on commit e4a4bb6

Please sign in to comment.