mirror of https://github.com/aria2/aria2
Set Peer::chokingRequired(true) for all active peer
parent
e31a49b8ee
commit
12b903f312
|
@ -218,10 +218,17 @@ void BtLeecherStateChoke::executeChoke(const PeerSet& peerSet)
|
||||||
|
|
||||||
std::vector<PeerEntry> peerEntries;
|
std::vector<PeerEntry> peerEntries;
|
||||||
for (const auto& p : peerSet) {
|
for (const auto& p : peerSet) {
|
||||||
if (p->isActive() && !p->snubbing()) {
|
if (!p->isActive()) {
|
||||||
p->chokingRequired(true);
|
continue;
|
||||||
peerEntries.push_back(PeerEntry(p));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p->chokingRequired(true);
|
||||||
|
|
||||||
|
if (p->snubbing()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
peerEntries.push_back(PeerEntry(p));
|
||||||
}
|
}
|
||||||
|
|
||||||
// planned optimistic unchoke
|
// planned optimistic unchoke
|
||||||
|
|
Loading…
Reference in New Issue