diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
| commit | 7cd9b21937c42606354610c7ae85a0857b474cf5 (patch) | |
| tree | 21edec9e14d7bde8cfa705840a6e9756b732e1e5 /src/TrackerWatcherCommand.cc | |
| parent | 2dc4bf01ad3b9be3de22696128e8007cf81a5345 (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.cc | 10 |
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(), |
