Skip to content

Commit

Permalink
torrents needs loop
Browse files Browse the repository at this point in the history
  • Loading branch information
eukreign committed Oct 18, 2022
1 parent a1b8746 commit 9cc6992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lbry/torrent/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def __init__(self, loop, executor, handle):
self._loop = loop
self._executor = executor
self._handle: libtorrent.torrent_handle = handle
self.started = asyncio.Event()
self.finished = asyncio.Event()
self.metadata_completed = asyncio.Event()
self.started = asyncio.Event(loop=loop)
self.finished = asyncio.Event(loop=loop)
self.metadata_completed = asyncio.Event(loop=loop)
self.size = 0
self.total_wanted_done = 0
self.name = ''
Expand Down

0 comments on commit 9cc6992

Please sign in to comment.