Sfoglia il codice sorgente

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

	Fixed the bug that waiting download unintentionally starts when
	URIs are added to it using aria2.changeUri XML-RPC method.  This
	also fixes the bug that causes segmentation fault when adding URIs
	to waiting download, which is a regression introduced by the
	previous change made to src/XmlRpcMethodImpl.cc
	* src/XmlRpcMethodImpl.cc
Tatsuhiro Tsujikawa 15 anni fa
parent
commit
f9c852c475
2 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. 9 0
      ChangeLog
  2. 1 1
      src/XmlRpcMethodImpl.cc

+ 9 - 0
ChangeLog

@@ -1,3 +1,12 @@
+2010-03-29  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Fixed the bug that waiting download unintentionally starts when
+	URIs are added to it using aria2.changeUri XML-RPC method.  This
+	also fixes the bug that causes segmentation fault when adding URIs
+	to waiting download, which is a regression introduced by the
+	previous change made to src/XmlRpcMethodImpl.cc
+	* src/XmlRpcMethodImpl.cc
+
 2010-03-29  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Fixed compile error with g++-4.4 on FreeBSD.

+ 1 - 1
src/XmlRpcMethodImpl.cc

@@ -996,7 +996,7 @@ BDE ChangeUriXmlRpcMethod::process
       }
     }
   }
-  if(addcount) {
+  if(addcount && !group->getPieceStorage().isNull()) {
     std::vector<Command*> commands;
     group->createNextCommand(commands, e);
     e->addCommand(commands);