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/PeerChokeCommand.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/PeerChokeCommand.cc')
| -rw-r--r-- | src/PeerChokeCommand.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/PeerChokeCommand.cc b/src/PeerChokeCommand.cc index bd4a502c..30e3d7dd 100644 --- a/src/PeerChokeCommand.cc +++ b/src/PeerChokeCommand.cc @@ -36,6 +36,11 @@ #include "DownloadEngine.h" #include "BtRuntime.h" #include "PeerStorage.h" +#include "RequestGroupMan.h" +#include "FileAllocationEntry.h" +#include "CheckIntegrityEntry.h" +#include "ServerStatMan.h" +#include "FileEntry.h" namespace aria2 { @@ -53,7 +58,7 @@ bool PeerChokeCommand::execute() { if(_peerStorage->chokeRoundIntervalElapsed()) { _peerStorage->executeChoke(); } - e->commands.push_back(this); + e->addCommand(this); return false; } |
