Browse Source

Avoid unnecessary double lookup

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
10e1c35998
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 3
      src/base/bittorrent/torrenthandle.cpp

3
src/base/bittorrent/torrenthandle.cpp

@ -1577,8 +1577,7 @@ void TorrentHandle::handleTrackerReplyAlert(const lt::tracker_reply_alert *p) @@ -1577,8 +1577,7 @@ void TorrentHandle::handleTrackerReplyAlert(const lt::tracker_reply_alert *p)
const QString trackerUrl(p->tracker_url());
qDebug("Received a tracker reply from %s (Num_peers = %d)", qUtf8Printable(trackerUrl), p->num_peers);
// Connection was successful now. Remove possible old errors
m_trackerInfos[trackerUrl].lastMessage.clear(); // Reset error/warning message
m_trackerInfos[trackerUrl].numPeers = p->num_peers;
m_trackerInfos[trackerUrl] = {{}, p->num_peers};
m_session->handleTorrentTrackerReply(this, trackerUrl);
}

Loading…
Cancel
Save