瀏覽代碼

fix portal teardown (#2370)

David Luzar 4 年之前
父節點
當前提交
68aafe31f9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/Portal.tsx

+ 2 - 0
src/components/Portal.tsx

@@ -49,6 +49,8 @@ class Portal {
     this.socket = null;
     this.roomID = null;
     this.roomKey = null;
+    this.socketInitialized = false;
+    this.broadcastedElementVersions = new Map();
   }
 
   isOpen() {