重新开始计时结束后, 将游戏状态置为等待加入

This commit is contained in:
zhl 2020-12-14 20:22:01 +08:00
parent 2730d23128
commit f89f862234

View File

@ -75,7 +75,7 @@ export class GameResultCommand extends Command<CardGameState, {}> {
client.leave(); client.leave();
} }
} }
self.state.updateGameState(GameStateConst.STATE_WAIT_JOIN);
await self.room.unlock(); await self.room.unlock();
await self.room.setPrivate(false); await self.room.setPrivate(false);
//开启匹配定时, 长时间没匹配到人的话, 添加机器人 //开启匹配定时, 长时间没匹配到人的话, 添加机器人