* main.cc: corrected addCommand.

This commit is contained in:
Tatsuhiro Tsujikawa 2006-03-23 11:04:43 +00:00
parent 1fcd640d3b
commit be44f3a736
2 changed files with 2 additions and 2 deletions

View File

@ -29,6 +29,7 @@
* PendingMessage.cc: make HAVE messages sent only when peer does not
have the piece.
* Peer.{h,cc}: added hasPiece(int index).
* main.cc: corrected addCommand.
2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

View File

@ -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();