summaryrefslogtreecommitdiff
path: root/src/AbstractCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/AbstractCommand.cc')
-rw-r--r--src/AbstractCommand.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc
index 9ffa549c..fb2cb4c7 100644
--- a/src/AbstractCommand.cc
+++ b/src/AbstractCommand.cc
@@ -41,7 +41,9 @@
#include "SleepCommand.h"
#include "prefs.h"
-AbstractCommand::AbstractCommand(int cuid, Request* req, DownloadEngine* e,
+AbstractCommand::AbstractCommand(int cuid,
+ const RequestHandle req,
+ DownloadEngine* e,
const SocketHandle& s):
Command(cuid), req(req), e(e), socket(s),
checkSocketIsReadable(false), checkSocketIsWritable(false),
@@ -125,7 +127,7 @@ bool AbstractCommand::execute() {
void AbstractCommand::tryReserved() {
if(!e->segmentMan->reserved.empty()) {
- Request* req = e->segmentMan->reserved.front();
+ RequestHandle req = e->segmentMan->reserved.front();
e->segmentMan->reserved.pop_front();
Command* command = InitiateConnectionCommandFactory::createInitiateConnectionCommand(cuid, req, e);
e->commands.push_back(command);