forked from LBRYCommunity/lbry-sdk
torrents needs loop
This commit is contained in:
parent
a1b87460c5
commit
9cc6992011
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@ class TorrentHandle:
|
||||||
self._loop = loop
|
self._loop = loop
|
||||||
self._executor = executor
|
self._executor = executor
|
||||||
self._handle: libtorrent.torrent_handle = handle
|
self._handle: libtorrent.torrent_handle = handle
|
||||||
self.started = asyncio.Event()
|
self.started = asyncio.Event(loop=loop)
|
||||||
self.finished = asyncio.Event()
|
self.finished = asyncio.Event(loop=loop)
|
||||||
self.metadata_completed = asyncio.Event()
|
self.metadata_completed = asyncio.Event(loop=loop)
|
||||||
self.size = 0
|
self.size = 0
|
||||||
self.total_wanted_done = 0
|
self.total_wanted_done = 0
|
||||||
self.name = ''
|
self.name = ''
|
||||||
|
|
Loading…
Reference in a new issue