|
@@ -77,7 +77,7 @@ bool PeerReceiveHandshakeCommand::executeInternal()
|
|
|
if(!PIECE_STORAGE(btContext)->downloadFinished() && tstat.getDownloadSpeed() < _lowestSpeedLimit ||
|
|
if(!PIECE_STORAGE(btContext)->downloadFinished() && tstat.getDownloadSpeed() < _lowestSpeedLimit ||
|
|
|
BT_RUNTIME(btContext)->getConnections() < MAX_PEERS) {
|
|
BT_RUNTIME(btContext)->getConnections() < MAX_PEERS) {
|
|
|
peer->reconfigure(btContext->getPieceLength(), btContext->getTotalLength());
|
|
peer->reconfigure(btContext->getPieceLength(), btContext->getTotalLength());
|
|
|
- if(PEER_STORAGE(btContext)->addIncomingPeer(peer)) {
|
|
|
|
|
|
|
+ if(PEER_STORAGE(btContext)->addPeer(peer)) {
|
|
|
|
|
|
|
|
peer->cuid = cuid;
|
|
peer->cuid = cuid;
|
|
|
|
|
|