mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 06:34:41 +02:00
Fix oputil hang
This commit is contained in:
parent
c9674e68fb
commit
f3cd36ad07
3 changed files with 28 additions and 21 deletions
|
@ -2,8 +2,6 @@
|
|||
/* eslint-disable no-console */
|
||||
'use strict';
|
||||
|
||||
const resolvePath = require('../misc_util.js').resolvePath;
|
||||
|
||||
const config = require('../../core/config.js');
|
||||
const db = require('../../core/database.js');
|
||||
|
||||
|
@ -46,7 +44,7 @@ function printUsageAndSetExitCode(errMsg, exitCode) {
|
|||
}
|
||||
|
||||
function getDefaultConfigPath() {
|
||||
return './config/';
|
||||
return './config/';
|
||||
}
|
||||
|
||||
function getConfigPath() {
|
||||
|
@ -57,7 +55,7 @@ function getConfigPath() {
|
|||
function initConfig(cb) {
|
||||
const configPath = getConfigPath();
|
||||
|
||||
config.init(configPath, { keepWsc : true }, cb);
|
||||
config.init(configPath, { keepWsc : true, noWatch : true }, cb);
|
||||
}
|
||||
|
||||
function initConfigAndDatabases(cb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue