mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
RTC-13831 Fix C9 termination (#1729)
This commit is contained in:
parent
5366452d2a
commit
ead7865fb8
@ -75,14 +75,12 @@ class C9ShellHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isTerminating = true;
|
||||
|
||||
if (!this._c9shell) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._isTerminating = true;
|
||||
this._c9shell.kill();
|
||||
this._isTerminating = false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -189,6 +187,7 @@ class C9ShellHandler {
|
||||
c9Shell.on('close', (code) => {
|
||||
logger.info('c9-shell: closed with code', code);
|
||||
this._c9shell = undefined;
|
||||
this._isTerminating = false;
|
||||
this._updateStatus({ status: 'inactive' });
|
||||
});
|
||||
c9Shell.on('spawn', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user