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