gemercheung 3 年之前
父节点
当前提交
c5e829732f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/controller/room/assistant.js

+ 2 - 2
src/controller/room/assistant.js

@@ -336,10 +336,10 @@ export class RoomAssistant {
     } else {
       this.closeRoom(roomId, userId, user);
     }
-    this.removeRoomSession(this.room.sessionId);
+    this.removeRoomSession(this.room);
   }
 
-  removeRoomSession(roomSessionId) {
+  async removeRoomSession(roomSessionId) {
     await this.redis.del(getInKey(roomSessionId));
   }