Add more precondition checks when handle async operation result

PR  #19460.
This commit is contained in:
Vladimir Golovnev
2023-08-14 16:02:50 +03:00
parent 2b69cabc2c
commit 67d340ad63
2 changed files with 10 additions and 3 deletions

View File

@@ -2950,7 +2950,7 @@ bool SessionImpl::addTorrent_impl(const std::variant<MagnetUri, TorrentInfo> &so
}
void SessionImpl::findIncompleteFiles(const TorrentInfo &torrentInfo, const Path &savePath
, const Path &downloadPath, const PathList &filePaths) const
, const Path &downloadPath, const PathList &filePaths) const
{
Q_ASSERT(filePaths.isEmpty() || (filePaths.size() == torrentInfo.filesCount()));