Improve add torrent error handling

PR #22468.
This commit is contained in:
Vladimir Golovnev 2025-03-25 09:13:15 +03:00 committed by GitHub
commit 4bd50672e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 78 additions and 14 deletions

View file

@ -375,7 +375,7 @@ void AutoDownloader::handleTorrentAdded(const QString &source)
}
}
void AutoDownloader::handleAddTorrentFailed(const QString &source)
void AutoDownloader::handleAddTorrentFailed(const QString &source, [[maybe_unused]] const BitTorrent::AddTorrentError &error)
{
m_waitingJobs.remove(source);
// TODO: Re-schedule job here.