Explorar el Código

Fix null check error

Jason Grout hace 5 años
padre
commit
b7d29483ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/services/src/terminal/default.ts

+ 1 - 1
packages/services/src/terminal/default.ts

@@ -103,7 +103,7 @@ export class TerminalConnection implements Terminal.ITerminalConnection {
     if (this._isDisposed || !message.content) {
       return;
     }
-    if (this.connectionStatus === 'connected') {
+    if (this.connectionStatus === 'connected' && this._ws) {
       const msg = [message.type, ...message.content];
       this._ws.send(JSON.stringify(msg));
     } else if (queue) {