Skip to content

Commit

Permalink
update flags, set sequential as a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
shyba committed Sep 9, 2022
1 parent 65befe1 commit f3eaf3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lbry/torrent/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
DEFAULT_FLAGS = ( # fixme: somehow the logic here is inverted?
libtorrent.add_torrent_params_flags_t.flag_auto_managed
| libtorrent.add_torrent_params_flags_t.flag_update_subscribe
| libtorrent.add_torrent_params_flags_t.flag_sequential_download
| libtorrent.add_torrent_params_flags_t.flag_paused
)


Expand All @@ -65,7 +67,6 @@ def __init__(self, loop, executor, handle):
self.tasks = []
self.torrent_file: Optional[libtorrent.file_storage] = None
self._base_path = None
self._handle.set_sequential_download(1)

@property
def largest_file(self) -> Optional[str]:
Expand Down

0 comments on commit f3eaf3e

Please sign in to comment.