mirror of
https://github.com/aria2/aria2.git
synced 2024-11-24 02:23:38 +08:00
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't throw exception when Metalink document is empty(no file element). It is a valid Metalink document anyway. * src/MetalinkHelper.cc * src/download_helper.cc
This commit is contained in:
parent
22ada0cf32
commit
5e053b62ab
@ -1,3 +1,10 @@
|
||||
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Don't throw exception when Metalink document is empty(no file
|
||||
element). It is a valid Metalink document anyway.
|
||||
* src/MetalinkHelper.cc
|
||||
* src/download_helper.cc
|
||||
|
||||
2010-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed double memory free when Exception raised from
|
||||
|
@ -71,9 +71,6 @@ void MetalinkHelper::query
|
||||
(std::vector<SharedHandle<MetalinkEntry> >& result,
|
||||
const SharedHandle<Metalinker>& metalinker, const Option* option)
|
||||
{
|
||||
if(metalinker->entries.empty()) {
|
||||
throw DL_ABORT_EX("No file entry found. Probably, the metalink file is not configured properly or broken.");
|
||||
}
|
||||
metalinker->queryEntry(result,
|
||||
option->get(PREF_METALINK_VERSION),
|
||||
option->get(PREF_METALINK_LANGUAGE),
|
||||
|
@ -329,9 +329,6 @@ void createRequestGroupForMetalink
|
||||
dw->setString(metalinkData);
|
||||
Metalink2RequestGroup().generate(result, dw, option);
|
||||
}
|
||||
if(result.empty()) {
|
||||
throw DL_ABORT_EX(MSG_NO_FILES_TO_DOWNLOAD);
|
||||
}
|
||||
}
|
||||
#endif // ENABLE_METALINK
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user