Make seeder do more get_peers to announce its presence

pull/675/head
Tatsuhiro Tsujikawa 2016-06-02 00:09:54 +09:00
parent 9486663259
commit a0706f5a44
1 changed files with 1 additions and 2 deletions

View File

@ -96,8 +96,7 @@ bool DHTGetPeersCommand::execute()
((numRetry_ && elapsed >= GET_PEER_INTERVAL_RETRY) ||
elapsed >= GET_PEER_INTERVAL_LOW)) ||
(btRuntime_->getConnections() == 0 &&
elapsed >= GET_PEER_INTERVAL_ZERO)) &&
!requestGroup_->downloadFinished()))) {
elapsed >= GET_PEER_INTERVAL_ZERO))))) {
A2_LOG_DEBUG(fmt("Issuing PeerLookup for infoHash=%s",
bittorrent::getInfoHashString(
requestGroup_->getDownloadContext()).c_str()));