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

6
routes/appConfig.js

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

Loading…
Cancel
Save