Skip to content
Snippets Groups Projects
Commit f8113d97 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] duniter/duniter#974 + duniter/duniter#975 Do not start services if the...

[fix] duniter/duniter#974 + duniter/duniter#975 Do not start services if the node has not been initialized
parent b2699c5f
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,10 @@ module.exports = {
require('./server/lib/routes').webmin(wbmin, app);
require('./server/lib/routes').webminWS(wbmin)(httpServer);
yield wbmin.startAllServices();
const currentBlock = yield server.dal.getCurrentBlockOrNull()
if (currentBlock) {
yield wbmin.startAllServices()
}
// Never ending promise
return new Promise((resolve) => {});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment