mirror of https://github.com/aria2/aria2
2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Unchoke a peer randomly at first and second choke round in seed state. * src/BtSeederStateChoke.ccpull/1/head
parent
c2f20e1e3a
commit
997f96d864
|
@ -1,3 +1,9 @@
|
|||
2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Unchoke a peer randomly at first and second choke round in seed
|
||||
state.
|
||||
* src/BtSeederStateChoke.cc
|
||||
|
||||
2009-06-02 Ross Smith II <aria2spam at smithii dot com>
|
||||
|
||||
Added (sock_t) to quiet compiler warnings in MinGW
|
||||
|
|
|
@ -96,7 +96,7 @@ void BtSeederStateChoke::unchoke
|
|||
(*r).getUploadSpeed());
|
||||
}
|
||||
|
||||
if(_round == 2) {
|
||||
if(_round < 2) {
|
||||
std::for_each(peers.begin(), peers.end(),
|
||||
std::mem_fun_ref(&PeerEntry::disableOptUnchoking));
|
||||
if(r != peers.end()) {
|
||||
|
|
Loading…
Reference in New Issue