From 1abeac88111f9147c4ada0db25e501270f84e5fe Mon Sep 17 00:00:00 2001 From: summer <79678786+summerqB@users.noreply.github.com> Date: Sun, 26 Jun 2022 10:26:21 +0600 Subject: [PATCH] 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. --- src/base/bittorrent/session.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 553ef2c32..d4ea39fd3 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -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)