gemercheung 3 jaren geleden
bovenliggende
commit
2cf339b48c
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3 2
      src/controller/room/assistant.js

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

@@ -14,6 +14,7 @@ export class RoomAssistant {
     this.redis = redis;
     this.roomId = null;
     this.hasCall = false;
+    this.illegalMaster = false;
     this.room = room;
     this.roomMax = false;
   }
@@ -336,8 +337,8 @@ export class RoomAssistant {
               await this.joinRoom(roomId, userId, user);
               // this.notifyUserJitter(roomId);
             } else {
-              this.room.logger.error("存在非法房主", userId);
-              await removeRoomUser(roomId, `user:${userId}`);
+              this.room.logger.error("存在非法房主", roomId, userId);
+              await removeRoomUser(roomId, userId);
               this.socket.broadcast.to(this.room.syncId).emit(EVENT.unKnowError);
             }
           }