mirror of https://github.com/aria2/aria2
2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Erase peer before executing onReturningPeer and onErasingPeer because choking algorithm called from onReturningPeer doesn't like erasing peer in the active peer list. * src/DefaultPeerStorage.ccpull/1/head
parent
7bcf0f48b2
commit
c1a3bba6f8
|
@ -1,3 +1,10 @@
|
||||||
|
2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Erase peer before executing onReturningPeer and onErasingPeer
|
||||||
|
because choking algorithm called from onReturningPeer doesn't
|
||||||
|
like erasing peer in the active peer list.
|
||||||
|
* src/DefaultPeerStorage.cc
|
||||||
|
|
||||||
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Instead of creating special filename in createDownloadResult() if
|
Instead of creating special filename in createDownloadResult() if
|
||||||
|
|
|
@ -247,10 +247,10 @@ void DefaultPeerStorage::returnPeer(const PeerHandle& peer)
|
||||||
if(itr == peers.end()) {
|
if(itr == peers.end()) {
|
||||||
logger->debug("Cannot find peer %s:%u in PeerStorage.", peer->ipaddr.c_str(), peer->port);
|
logger->debug("Cannot find peer %s:%u in PeerStorage.", peer->ipaddr.c_str(), peer->port);
|
||||||
} else {
|
} else {
|
||||||
onReturningPeer(peer);
|
|
||||||
|
|
||||||
onErasingPeer(*itr);
|
|
||||||
peers.erase(itr);
|
peers.erase(itr);
|
||||||
|
|
||||||
|
onReturningPeer(peer);
|
||||||
|
onErasingPeer(peer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue