mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Avoid unnecessary double lookup
This commit is contained in:
parent
c75500670d
commit
10e1c35998
1 changed files with 1 additions and 2 deletions
|
@ -1577,8 +1577,7 @@ void TorrentHandle::handleTrackerReplyAlert(const lt::tracker_reply_alert *p)
|
||||||
const QString trackerUrl(p->tracker_url());
|
const QString trackerUrl(p->tracker_url());
|
||||||
qDebug("Received a tracker reply from %s (Num_peers = %d)", qUtf8Printable(trackerUrl), p->num_peers);
|
qDebug("Received a tracker reply from %s (Num_peers = %d)", qUtf8Printable(trackerUrl), p->num_peers);
|
||||||
// Connection was successful now. Remove possible old errors
|
// Connection was successful now. Remove possible old errors
|
||||||
m_trackerInfos[trackerUrl].lastMessage.clear(); // Reset error/warning message
|
m_trackerInfos[trackerUrl] = {{}, p->num_peers};
|
||||||
m_trackerInfos[trackerUrl].numPeers = p->num_peers;
|
|
||||||
|
|
||||||
m_session->handleTorrentTrackerReply(this, trackerUrl);
|
m_session->handleTorrentTrackerReply(this, trackerUrl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue