Skip to content
Snippets Groups Projects
Unverified Commit b5cd6291 authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

dht: callback if no storage maintenance

parent 39467c8b
Branches
Tags
No related merge requests found
...@@ -735,8 +735,10 @@ Dht::getStatus(sa_family_t af) const ...@@ -735,8 +735,10 @@ Dht::getStatus(sa_family_t af) const
void void
Dht::shutdown(ShutdownCallback cb) Dht::shutdown(ShutdownCallback cb)
{ {
if (not maintain_storage) if (not maintain_storage) {
if (cb) cb();
return; return;
}
// Last store maintenance // Last store maintenance
scheduler.syncTime(); scheduler.syncTime();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment