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
pull/1/head
Tatsuhiro Tsujikawa 2010-03-29 14:43:50 +00:00
parent feedb92ed7
commit f9c852c475
2 changed files with 10 additions and 1 deletions

View File

@ -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.

View File

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