summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-27 01:23:54 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-04-27 01:23:54 +0900
commit9734fa5447f2e45198b347959a12b10e3d49f2ea (patch)
treece1d74aaf11b4639eefe340290db893519df1799
parent0ef5f4eea13ab25ef47ff312001bc02fa638b93e (diff)
Call onEndOfRun() on oneshot == true as well
-rw-r--r--src/DownloadEngine.cc4
1 files changed, 1 insertions, 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;
}