Browse Source

2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Fixed the bug that added URI using aria2.changeUri XML-RPC method
	is not used immediately if there is no URIs remaining before
	calling aria2.changeUri and the number of connection is less than
	the value in -s(or -C for Metalink downloads).
	* src/XmlRpcMethodImpl.cc
Tatsuhiro Tsujikawa 15 years ago
parent
commit
d88f7cd0a4
2 changed files with 10 additions and 0 deletions
  1. 8 0
      ChangeLog
  2. 2 0
      src/XmlRpcMethodImpl.cc

+ 8 - 0
ChangeLog

@@ -1,3 +1,11 @@
+2010-03-28  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Fixed the bug that added URI using aria2.changeUri XML-RPC method
+	is not used immediately if there is no URIs remaining before
+	calling aria2.changeUri and the number of connection is less than
+	the value in -s(or -C for Metalink downloads).
+	* src/XmlRpcMethodImpl.cc
+
 2010-03-28  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Documented --always-resume and --max-resume-failure-tries option

+ 2 - 0
src/XmlRpcMethodImpl.cc

@@ -61,6 +61,7 @@
 #include "array_fun.h"
 #include "XmlRpcMethodFactory.h"
 #include "XmlRpcResponse.h"
+#include "SegmentMan.h"
 #ifdef ENABLE_BITTORRENT
 # include "bittorrent_helper.h"
 # include "BtRegistry.h"
@@ -999,6 +1000,7 @@ BDE ChangeUriXmlRpcMethod::process
     std::vector<Command*> commands;
     group->createNextCommand(commands, e);
     e->addCommand(commands);
+    group->getSegmentMan()->recognizeSegmentFor(s);
   }
   BDE res = BDE::list();
   res << delcount;