mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 22:03:27 -07:00
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:
parent
bd4390b052
commit
377dc597ca
1 changed files with 1 additions and 3 deletions
|
@ -1171,9 +1171,7 @@ 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);
|
||||||
|
torrent->forceReannounce();
|
||||||
if (!torrent->isStopped())
|
|
||||||
torrent->forceReannounce();
|
|
||||||
|
|
||||||
setResult(QString());
|
setResult(QString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue