Remove unnecessary force reannounce on interface alerts

This isn't necessary since it can cause issues by doing unnecessary reannounce during startup and network address refresh. This impact of this can be great if it happens on a regular basis and if someone has a lot of torrents.

PR #17261.
This commit is contained in:
summer
2022-06-26 10:26:21 +06:00
committed by GitHub
parent f8a304abdc
commit 1abeac8811

View File

@@ -5186,9 +5186,6 @@ void Session::handleListenSucceededAlert(const lt::listen_succeeded_alert *p)
const QString proto {toString(p->socket_type)};
LogMsg(tr("Successfully listening on IP. IP: \"%1\". Port: \"%2/%3\"")
.arg(toString(p->address), proto, QString::number(p->port)), Log::INFO);
// Force reannounce on all torrents because some trackers blacklist some ports
reannounceToAllTrackers();
}
void Session::handleListenFailedAlert(const lt::listen_failed_alert *p)