summaryrefslogtreecommitdiff
path: root/src/BtLeecherStateChoke.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-06-05 11:26:08 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-06-05 11:26:08 +0900
commit93bd6cfbb8e46b53c042984d295fb152e0ec6982 (patch)
tree2e592cd0d7180467572e04a80a14a439b085573b /src/BtLeecherStateChoke.cc
parent22a91dfe121b2c12841c8615ef6aaf62356bd1ae (diff)
Disable opt unchoking for bad peer
Diffstat (limited to 'src/BtLeecherStateChoke.cc')
-rw-r--r--src/BtLeecherStateChoke.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/BtLeecherStateChoke.cc b/src/BtLeecherStateChoke.cc
index 5c734a4f..3e57df53 100644
--- a/src/BtLeecherStateChoke.cc
+++ b/src/BtLeecherStateChoke.cc
@@ -225,6 +225,7 @@ void BtLeecherStateChoke::executeChoke(const PeerSet& peerSet)
p->chokingRequired(true);
if (p->snubbing()) {
+ p->optUnchoking(false);
continue;
}