Fix .torrent file could not be deleted when torrent is canceled

PR #21735.
Closes #21723.
This commit is contained in:
Vladimir Golovnev
2024-11-02 16:41:05 +03:00
committed by Vladimir Golovnev (Glassez)
parent fe24bc825b
commit 6079b25419
5 changed files with 19 additions and 11 deletions

View File

@@ -74,7 +74,7 @@ protected:
void handleAddTorrentFailed(const QString &source, const QString &reason);
void handleDuplicateTorrent(const QString &source, const BitTorrent::TorrentDescriptor &torrentDescr, BitTorrent::Torrent *existingTorrent);
void setTorrentFileGuard(const QString &source, std::shared_ptr<TorrentFileGuard> torrentFileGuard);
void releaseTorrentFileGuard(const QString &source);
std::shared_ptr<TorrentFileGuard> releaseTorrentFileGuard(const QString &source);
private:
void onDownloadFinished(const Net::DownloadResult &result);