mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
fix: inline get trackers
This commit is contained in:
parent
5d903cab4f
commit
eb682e7cd5
1 changed files with 2 additions and 3 deletions
|
@ -567,11 +567,10 @@ void TorrentsController::trackersAction()
|
|||
throw APIError(APIErrorType::NotFound);
|
||||
|
||||
QJsonArray trackersList = getStickyTrackers(torrent);
|
||||
QJsonArray trackers = getTrackers(torrent);
|
||||
|
||||
// merge QJsonArray
|
||||
for (auto &&tracker : trackers)
|
||||
trackersList.append(std::move(tracker));
|
||||
for (const auto &tracker : asConst(getTrackers(torrent)))
|
||||
trackersList.append(tracker);
|
||||
|
||||
setResult(trackersList);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue