Browse Source

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.
adaptive-webui-19844
summer 3 years ago committed by GitHub
parent
commit
1abeac8811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/base/bittorrent/session.cpp

3
src/base/bittorrent/session.cpp

@ -5186,9 +5186,6 @@ void Session::handleListenSucceededAlert(const lt::listen_succeeded_alert *p) @@ -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)

Loading…
Cancel
Save