mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 18:56:08 +03:00
commit
80bf5978de
1 changed files with 1 additions and 1 deletions
|
@ -1941,7 +1941,7 @@ bool Session::addTorrent_impl(CreateTorrentParams params, const MagnetUri &magne
|
||||||
p = lt::read_resume_data(fastresumeData, ec);
|
p = lt::read_resume_data(fastresumeData, ec);
|
||||||
|
|
||||||
// load from .torrent file when fastresume doesn't contain the required `info` dict
|
// load from .torrent file when fastresume doesn't contain the required `info` dict
|
||||||
if (!p.ti->is_valid())
|
if (!p.ti || !p.ti->is_valid())
|
||||||
p.ti = torrentInfo.nativeInfo();
|
p.ti = torrentInfo.nativeInfo();
|
||||||
|
|
||||||
// libtorrent will always apply `file_priorities` to torrents,
|
// libtorrent will always apply `file_priorities` to torrents,
|
||||||
|
|
Loading…
Reference in a new issue