DefaultPeerStorage::addBadPeer: Updating eoi is not required after erasure

pull/43/head
Tatsuhiro Tsujikawa 2013-01-26 18:41:43 +09:00
parent 1e4f301ec1
commit 91b26ab2a8
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ void DefaultPeerStorage::addBadPeer(const std::string& ipaddr)
if(global::wallclock().getTime() >= (*i).second) {
A2_LOG_DEBUG(fmt("Purge %s from bad peer", (*i).first.c_str()));
badPeers_.erase(i++);
eoi = badPeers_.end();
// badPeers_.end() will not be invalidated.
} else {
++i;
}