summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index 403ff9ea..7fd0d4a6 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -96,7 +96,7 @@ void torrentHandler(int signal) {
exit(0);
}
-void addCommand(int cuid, const char* url, string referer, Requests requests) {
+void addCommand(int cuid, const char* url, string referer, Requests& requests) {
Request* req = new Request();
req->setReferer(referer);
if(req->setUrl(url)) {
@@ -539,7 +539,6 @@ int main(int argc, char* argv[]) {
} else {
printDownloadAbortMessage();
}
-
for_each(requests.begin(), requests.end(), clearRequest);
requests.clear();