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
committed by GitHub
parent 7a9a102b6f
commit cab5edb721
2 changed files with 10 additions and 3 deletions

View File

@@ -2909,7 +2909,7 @@ bool SessionImpl::addTorrent_impl(const TorrentDescriptor &source, const AddTorr
}
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()));