WebAPI: Always reannounce torrent

This removes the check, for consistency with the rest of the codebase. Libtorrent performs its own torrent status check.
This commit is contained in:
Thomas Piccirello 2025-07-09 14:57:22 -07:00
commit 377dc597ca
No known key found for this signature in database

View file

@ -1171,8 +1171,6 @@ void TorrentsController::editTrackerAction()
throw APIError(APIErrorType::Conflict, u"Tracker not found"_s); throw APIError(APIErrorType::Conflict, u"Tracker not found"_s);
torrent->replaceTrackers(entries); torrent->replaceTrackers(entries);
if (!torrent->isStopped())
torrent->forceReannounce(); torrent->forceReannounce();
setResult(QString()); setResult(QString());