mirror of https://github.com/aria2/aria2
DefaultPeerStorage::addBadPeer: Updating eoi is not required after erasure
parent
1e4f301ec1
commit
91b26ab2a8
|
@ -193,7 +193,7 @@ void DefaultPeerStorage::addBadPeer(const std::string& ipaddr)
|
||||||
if(global::wallclock().getTime() >= (*i).second) {
|
if(global::wallclock().getTime() >= (*i).second) {
|
||||||
A2_LOG_DEBUG(fmt("Purge %s from bad peer", (*i).first.c_str()));
|
A2_LOG_DEBUG(fmt("Purge %s from bad peer", (*i).first.c_str()));
|
||||||
badPeers_.erase(i++);
|
badPeers_.erase(i++);
|
||||||
eoi = badPeers_.end();
|
// badPeers_.end() will not be invalidated.
|
||||||
} else {
|
} else {
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue