|
@@ -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);
|
|
|
}
|
|
|
}
|