mirror of https://github.com/aria2/aria2
				
				
				
			* main.cc: corrected addCommand.
							parent
							
								
									1fcd640d3b
								
							
						
					
					
						commit
						be44f3a736
					
				|  | @ -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> | ||||
| 
 | ||||
|  |  | |||
|  | @ -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(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Tatsuhiro Tsujikawa
						Tatsuhiro Tsujikawa