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