mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 08:32:31 -06:00
Fix previous commit on DHT announce.
This commit is contained in:
@@ -425,17 +425,17 @@ void TrackerList::reannounceSelected() {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
std::vector<announce_entry> trackers = h.trackers();
|
std::vector<announce_entry> trackers = h.trackers();
|
||||||
for (size_t i = 0; i < trackers.size(); ++i) {
|
foreach (QTreeWidgetItem* w, selected_items) {
|
||||||
foreach (QTreeWidgetItem* w, selected_items) {
|
|
||||||
if (w == dht_item) {
|
if (w == dht_item) {
|
||||||
h.force_dht_announce();
|
h.force_dht_announce();
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
if (w->text(COL_URL) == misc::toQString(trackers[i].url)) {
|
for (size_t i = 0; i < trackers.size(); ++i) {
|
||||||
h.force_reannounce(0, i);
|
if (w->text(COL_URL) == misc::toQString(trackers[i].url)) {
|
||||||
break;
|
h.force_reannounce(0, i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch(invalid_handle&) {
|
} catch(invalid_handle&) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user