|
@@ -159,7 +159,7 @@ export class RoomAssistant {
|
|
try {
|
|
try {
|
|
if (!this.room.isHoster(user.role)) {
|
|
if (!this.room.isHoster(user.role)) {
|
|
this.room.logger.info("不是房主", JSON.stringify(user));
|
|
this.room.logger.info("不是房主", JSON.stringify(user));
|
|
- await this.joinRoom(roomId, userId, user, socket);
|
|
|
|
|
|
+ await this.joinRoom(roomId, userId, user);
|
|
} else {
|
|
} else {
|
|
const hasRoom = await this.redis.hVals(roomId);
|
|
const hasRoom = await this.redis.hVals(roomId);
|
|
if (hasRoom.length === 0) {
|
|
if (hasRoom.length === 0) {
|