mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
Fix oputil hang
This commit is contained in:
parent
c9674e68fb
commit
f3cd36ad07
3 changed files with 28 additions and 21 deletions
|
@ -100,7 +100,14 @@ function init(configPath, options, cb) {
|
|||
};
|
||||
|
||||
const ConfigCache = require('./config_cache.js');
|
||||
ConfigCache.getConfigWithOptions( { filePath : configPath, callback : changed }, (err, config) => {
|
||||
const getConfigOptions = {
|
||||
filePath : configPath,
|
||||
noWatch : options.noWatch,
|
||||
};
|
||||
if(!options.noWatch) {
|
||||
getConfigOptions.callback = changed;
|
||||
}
|
||||
ConfigCache.getConfigWithOptions(getConfigOptions, (err, config) => {
|
||||
if(err) {
|
||||
return cb(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue