mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Don't add a torrent which doesn't have a matching .torrent file to its .fastresume file. Closes #3346.
This commit is contained in:
parent
5e400d3117
commit
b80ced2b3a
1 changed files with 4 additions and 1 deletions
|
@ -1092,7 +1092,10 @@ bool Session::addTorrent_impl(const AddTorrentData &addData, const MagnetUri &ma
|
|||
hash = torrentInfo.hash();
|
||||
}
|
||||
else {
|
||||
Q_ASSERT(false);
|
||||
// We can have an invalid torrentInfo when there isn't a matching
|
||||
// .torrent file to the .fastresume we loaded. Possibly from a
|
||||
// failed upgrade.
|
||||
return false;
|
||||
}
|
||||
|
||||
if (addData.resumed && !fromMagnetUri) {
|
||||
|
|
Loading…
Reference in a new issue