summaryrefslogtreecommitdiff
path: root/src/HttpDownloadCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpDownloadCommand.cc')
-rw-r--r--src/HttpDownloadCommand.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/HttpDownloadCommand.cc b/src/HttpDownloadCommand.cc
index de4d6f27..0993b94c 100644
--- a/src/HttpDownloadCommand.cc
+++ b/src/HttpDownloadCommand.cc
@@ -33,6 +33,9 @@
*/
/* copyright --> */
#include "HttpDownloadCommand.h"
+#include "RequestGroup.h"
+#include "DownloadEngine.h"
+#include "Request.h"
#include "HttpRequestCommand.h"
#include "Util.h"
#include "message.h"
@@ -47,7 +50,7 @@ HttpDownloadCommand::HttpDownloadCommand(int cuid,
HttpDownloadCommand::~HttpDownloadCommand() {}
bool HttpDownloadCommand::prepareForNextSegment() {
- if(!_requestGroup->getSegmentMan()->finished()) {
+ if(!_requestGroup->downloadFinished()) {
if(req->isKeepAlive()) {
Command* command = new HttpRequestCommand(cuid, req, _requestGroup, e, socket);
e->commands.push_back(command);