mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
🐛 Daemon broke saving
This commit is contained in:
parent
a28739187c
commit
942cad4b56
1 changed files with 2 additions and 1 deletions
3
main.cpp
3
main.cpp
|
|
@ -35,6 +35,7 @@ int main(int argc, char **argv)
|
|||
{
|
||||
std::this_thread::sleep_for(std::chrono::minutes(saving_freq));
|
||||
bank.Save();
|
||||
std::cout<<"Saving\n";
|
||||
}
|
||||
}).detach();
|
||||
}
|
||||
|
|
@ -44,7 +45,7 @@ int main(int argc, char **argv)
|
|||
[](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) {
|
||||
resp->addHeader("Access-Control-Allow-Origin", "*");
|
||||
});
|
||||
app().loadConfigFile("../config.json").registerController(API).setThreadNum(std::stoul(argv[3])).enableRunAsDaemon().run();
|
||||
app().loadConfigFile("../config.json").registerController(API).setThreadNum(std::stoul(argv[3])).run();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue