Browse Source

cliStopTimeout settings option

v0.25
pbca26 7 years ago
parent
commit
05feea62c0
  1. 4
      main.js
  2. 6
      routes/appConfig.js

4
main.js

@ -429,7 +429,7 @@ function createWindow(status) {
shepherd.log('Closing Main Window...'); shepherd.log('Closing Main Window...');
shepherd.writeLog('exiting app...'); shepherd.writeLog('exiting app...');
shepherd.quitKomodod(1000); shepherd.quitKomodod(appConfig.cliStopTimeout);
const result = 'Closing daemons: done'; const result = 'Closing daemons: done';
@ -480,7 +480,7 @@ function createWindow(status) {
closeApp(); closeApp();
} else { } else {
createAppCloseWindow(); createAppCloseWindow();
shepherd.quitKomodod(1000); shepherd.quitKomodod(appConfig.cliStopTimeout);
_appClosingInterval = setInterval(function() { _appClosingInterval = setInterval(function() {
if (!Object.keys(shepherd.coindInstanceRegistry).length) { if (!Object.keys(shepherd.coindInstanceRegistry).length) {
closeApp(); closeApp();

6
routes/appConfig.js

@ -14,6 +14,7 @@ const appConfig = {
dex: { dex: {
walletUnlockTimeout: 3600, walletUnlockTimeout: 3600,
}, },
cliStopTimeout: 1000,
}, },
schema: { schema: {
host: { host: {
@ -91,6 +92,11 @@ const appConfig = {
type: 'number', type: 'number',
}, },
}, },
cliStopTimeout: {
display: true,
displayName: 'CLI stop timeout',
type: 'number',
},
}, },
}; };

Loading…
Cancel
Save