summaryrefslogtreecommitdiff
path: root/src/StreamFileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 15:04:01 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 15:04:01 +0000
commita68b29a31abdf69c34b36a9c31d834a8bb71852e (patch)
treebe0cf6590671b3dc4472bdbf26a7d911c5871279 /src/StreamFileAllocationEntry.cc
parentf114c890961ef9a0f7666b077b40d22f39b6cdd3 (diff)
2010-06-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variable private. Added accessor funcs. * src/BtCheckIntegrityEntry.cc * src/BtFileAllocationEntry.cc * src/CheckIntegrityEntry.cc * src/CheckIntegrityEntry.h * src/ChecksumCheckIntegrityEntry.cc * src/FileAllocationEntry.cc * src/PieceHashCheckIntegrityEntry.cc * src/RequestGroupEntry.h * src/StreamCheckIntegrityEntry.cc * src/StreamFileAllocationEntry.cc
Diffstat (limited to 'src/StreamFileAllocationEntry.cc')
-rw-r--r--src/StreamFileAllocationEntry.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc
index c0282f8a..e771e758 100644
--- a/src/StreamFileAllocationEntry.cc
+++ b/src/StreamFileAllocationEntry.cc
@@ -59,16 +59,16 @@ void StreamFileAllocationEntry::prepareForNextAction
(std::vector<Command*>& commands,
DownloadEngine* e)
{
- _requestGroup->getDownloadContext()->resetDownloadStartTime();
- if(_nextCommand) {
+ getRequestGroup()->getDownloadContext()->resetDownloadStartTime();
+ if(getNextCommand()) {
// give _nextCommand a chance to execute in the next execution loop.
- _nextCommand->setStatus(Command::STATUS_ONESHOT_REALTIME);
+ getNextCommand()->setStatus(Command::STATUS_ONESHOT_REALTIME);
e->setNoWait(true);
commands.push_back(popNextCommand());
// try remaining uris
- _requestGroup->createNextCommandWithAdj(commands, e, -1);
+ getRequestGroup()->createNextCommandWithAdj(commands, e, -1);
} else {
- _requestGroup->createNextCommandWithAdj(commands, e, 0);
+ getRequestGroup()->createNextCommandWithAdj(commands, e, 0);
}
}