RTC-13831 Fix C9 termination (#1729)

This commit is contained in:
Baptiste Clarey Sjostrand 2023-02-24 09:22:58 +01:00 committed by GitHub
parent 5366452d2a
commit ead7865fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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', () => {