summaryrefslogtreecommitdiff
path: root/src/app_console/app_console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_console/app_console.cpp')
-rw-r--r--src/app_console/app_console.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app_console/app_console.cpp b/src/app_console/app_console.cpp
index b5698792..63accc21 100644
--- a/src/app_console/app_console.cpp
+++ b/src/app_console/app_console.cpp
@@ -161,7 +161,9 @@ int CmdDbInit(int argc, char** argv) {
std::cout << "no database open" << std::endl;
return 1;
}
- db->updateIndexes();
+
+ AppConsole::sServices->bg_worker().Dispatch<void>(
+ [=]() { db->updateIndexes(); });
return 0;
}