diff --git a/ChangeLog b/ChangeLog index cda7c0fa..6af5d320 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-03-28 Tatsuhiro Tsujikawa + + 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 Documented --always-resume and --max-resume-failure-tries option diff --git a/src/XmlRpcMethodImpl.cc b/src/XmlRpcMethodImpl.cc index 251e9d61..56017eca 100644 --- a/src/XmlRpcMethodImpl.cc +++ b/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 commands; group->createNextCommand(commands, e); e->addCommand(commands); + group->getSegmentMan()->recognizeSegmentFor(s); } BDE res = BDE::list(); res << delcount;