From 9734fa5447f2e45198b347959a12b10e3d49f2ea Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 27 Apr 2013 01:23:54 +0900 Subject: [PATCH] Call onEndOfRun() on oneshot == true as well --- src/DownloadEngine.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DownloadEngine.cc b/src/DownloadEngine.cc index 4df4aed1..c014eb80 100644 --- a/src/DownloadEngine.cc +++ b/src/DownloadEngine.cc @@ -163,9 +163,7 @@ int DownloadEngine::run(bool oneshot) return 1; } } - if(!oneshot) { - onEndOfRun(); - } + onEndOfRun(); return 0; }