summaryrefslogtreecommitdiff
path: root/src/DHTBucketRefreshCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:12:52 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-26 17:20:27 +0900
commitd64089632e82a2548752c7a6baaa68365a795a74 (patch)
tree57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /src/DHTBucketRefreshCommand.cc
parentc81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff)
parenta7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff)
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/DHTBucketRefreshCommand.cc')
-rw-r--r--src/DHTBucketRefreshCommand.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/DHTBucketRefreshCommand.cc b/src/DHTBucketRefreshCommand.cc
index 120577fc..42230469 100644
--- a/src/DHTBucketRefreshCommand.cc
+++ b/src/DHTBucketRefreshCommand.cc
@@ -42,20 +42,21 @@
namespace aria2 {
-DHTBucketRefreshCommand::DHTBucketRefreshCommand
-(cuid_t cuid, DownloadEngine* e, std::chrono::seconds interval)
- : TimeBasedCommand{cuid, e, std::move(interval)},
- routingTable_{nullptr},
- taskQueue_{nullptr},
- taskFactory_{nullptr}
-{}
+DHTBucketRefreshCommand::DHTBucketRefreshCommand(cuid_t cuid, DownloadEngine* e,
+ std::chrono::seconds interval)
+ : TimeBasedCommand{cuid, e, std::move(interval)},
+ routingTable_{nullptr},
+ taskQueue_{nullptr},
+ taskFactory_{nullptr}
+{
+}
DHTBucketRefreshCommand::~DHTBucketRefreshCommand() {}
void DHTBucketRefreshCommand::preProcess()
{
- if(getDownloadEngine()->getRequestGroupMan()->downloadFinished() ||
- getDownloadEngine()->isHaltRequested()) {
+ if (getDownloadEngine()->getRequestGroupMan()->downloadFinished() ||
+ getDownloadEngine()->isHaltRequested()) {
enableExit();
}
}