summaryrefslogtreecommitdiff
path: root/src/PeerInteractionCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-11-18 12:19:00 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-11-18 12:19:00 +0000
commit2f6e22f1aa2b25c8a2afc70e18335bc13ccda5db (patch)
tree1e18f40893402e5e141eb0f7b9122086021d85a7 /src/PeerInteractionCommand.cc
parent20e734fa15c7876edd7db3843c1c6cc26b1c5960 (diff)
2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Check socket for reading if there are outstanding requests. * src/PeerInteractionCommand.cc
Diffstat (limited to 'src/PeerInteractionCommand.cc')
-rw-r--r--src/PeerInteractionCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PeerInteractionCommand.cc b/src/PeerInteractionCommand.cc
index 38644aaf..3fe2035f 100644
--- a/src/PeerInteractionCommand.cc
+++ b/src/PeerInteractionCommand.cc
@@ -257,8 +257,8 @@ bool PeerInteractionCommand::executeInternal() {
if(btInteractive->countReceivedMessageInIteration() > 0) {
updateKeepAlive();
}
- if((peer->amInterested() && !peer->peerChoking() &&
- (peer->getLatency() < 1500)) ||
+ if((peer->amInterested() && !peer->peerChoking()) ||
+ btInteractive->countOutstandingRequest() ||
(peer->peerInterested() && !peer->amChoking())) {
// Writable check to avoid slow seeding