diff options
Diffstat (limited to 'src/PeerInteractionCommand.cc')
| -rw-r--r-- | src/PeerInteractionCommand.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PeerInteractionCommand.cc b/src/PeerInteractionCommand.cc index a2d76af6..d0b374ee 100644 --- a/src/PeerInteractionCommand.cc +++ b/src/PeerInteractionCommand.cc @@ -81,7 +81,7 @@ bool PeerInteractionCommand::executeInternal() { peer->ipaddr.c_str(), peer->port, handshakeMessage->toString().c_str()); delete handshakeMessage; - if(e->torrentMan->getDownloadedSize() > 0) { + if(e->torrentMan->getDownloadLength() > 0) { peerConnection->sendBitfield(); } sequence = WIRED; @@ -98,7 +98,7 @@ bool PeerInteractionCommand::executeInternal() { handshakeMessage->toString().c_str()); delete handshakeMessage; peerConnection->sendHandshake(); - if(e->torrentMan->getDownloadedSize() > 0) { + if(e->torrentMan->getDownloadLength() > 0) { peerConnection->sendBitfield(); } sequence = WIRED; |
