mirror of https://github.com/aria2/aria2
Drop connection if client and peer are both seeders.
parent
b6d5c389b8
commit
653951f70a
|
@ -461,6 +461,10 @@ void DefaultBtInteractive::checkActiveInteraction()
|
||||||
static_cast<long int>(interval)));
|
static_cast<long int>(interval)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// If both of us are seeders, drop connection.
|
||||||
|
if(peer_->isSeeder() && pieceStorage_->downloadFinished()) {
|
||||||
|
throw DL_ABORT_EX(MSG_GOOD_BYE_SEEDER);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DefaultBtInteractive::addPeerExchangeMessage()
|
void DefaultBtInteractive::addPeerExchangeMessage()
|
||||||
|
|
Loading…
Reference in New Issue