소스 검색

Fix null check error

Jason Grout 5 년 전
부모
커밋
b7d29483ac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) {