summaryrefslogtreecommitdiff
path: root/src/TrackerWatcherCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-08 14:11:36 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-08 14:11:36 +0000
commit7cd9b21937c42606354610c7ae85a0857b474cf5 (patch)
tree21edec9e14d7bde8cfa705840a6e9756b732e1e5 /src/TrackerWatcherCommand.cc
parent2dc4bf01ad3b9be3de22696128e8007cf81a5345 (diff)
2010-06-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made public member variables of DownloadEngine private. Added accessor funcs.
Diffstat (limited to 'src/TrackerWatcherCommand.cc')
-rw-r--r--src/TrackerWatcherCommand.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/TrackerWatcherCommand.cc b/src/TrackerWatcherCommand.cc
index 60a7b62a..9426e4a4 100644
--- a/src/TrackerWatcherCommand.cc
+++ b/src/TrackerWatcherCommand.cc
@@ -61,6 +61,10 @@
#include "bittorrent_helper.h"
#include "a2functional.h"
#include "util.h"
+#include "RequestGroupMan.h"
+#include "FileAllocationEntry.h"
+#include "CheckIntegrityEntry.h"
+#include "ServerStatMan.h"
namespace aria2 {
@@ -87,7 +91,7 @@ bool TrackerWatcherCommand::execute() {
return true;
} else {
_trackerRequestGroup->setForceHaltRequested(true);
- e->commands.push_back(this);
+ e->addCommand(this);
return false;
}
}
@@ -136,7 +140,7 @@ bool TrackerWatcherCommand::execute() {
_btAnnounce->resetAnnounce();
}
}
- e->commands.push_back(this);
+ e->addCommand(this);
return false;
}
@@ -175,7 +179,7 @@ void TrackerWatcherCommand::processTrackerResponse
(peer->usedBy(), _requestGroup, peer, e, _btRuntime);
command->setPeerStorage(_peerStorage);
command->setPieceStorage(_pieceStorage);
- e->commands.push_back(command);
+ e->addCommand(command);
if(logger->debug()) {
logger->debug("CUID#%s - Adding new command CUID#%s",
util::itos(cuid).c_str(),