diff options
Diffstat (limited to 'src/TrackerUpdateCommand.cc')
| -rw-r--r-- | src/TrackerUpdateCommand.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/TrackerUpdateCommand.cc b/src/TrackerUpdateCommand.cc index 8ef3e0ae..2110e420 100644 --- a/src/TrackerUpdateCommand.cc +++ b/src/TrackerUpdateCommand.cc @@ -40,10 +40,7 @@ TrackerUpdateCommand::~TrackerUpdateCommand() { } bool TrackerUpdateCommand::execute() { - if(req->getTrackerEvent() == Request::COMPLETED) { - return true; - } - e->torrentMan->deleteOldErrorPeers(25); + //e->torrentMan->deleteOldErrorPeers(25); Dictionary* response = (Dictionary*)trackerResponse; Data* failureReason = (Data*)response->get("failure reason"); @@ -110,7 +107,7 @@ bool TrackerUpdateCommand::execute() { } */ while(e->torrentMan->isPeerAvailable() && - e->torrentMan->connections < MAX_PEERS) { + e->torrentMan->connections < MAX_PEER_UPDATE) { Peer* peer = e->torrentMan->getPeer(); int newCuid = e->torrentMan->getNewCuid(); peer->cuid = newCuid; |
