2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Don't catch Exception.
	* src/RealtimeCommand.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2010-11-14 08:13:59 +00:00
parent 1d77c67f1b
commit af33f67fee
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't catch Exception.
* src/RealtimeCommand.cc
2010-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed unused includes.

View File

@ -34,7 +34,7 @@
/* copyright --> */
#include "RealtimeCommand.h"
#include "DownloadEngine.h"
#include "Exception.h"
#include "RecoverableException.h"
#include "RequestGroup.h"
namespace aria2 {
@ -61,7 +61,7 @@ bool RealtimeCommand::execute()
e_->setNoWait(true);
try {
return executeInternal();
} catch(Exception& e) {
} catch(RecoverableException& e) {
bool r = handleException(e);
return r;
}