diff --git a/src/socket/socket.gateway.ts b/src/socket/socket.gateway.ts index 5940f93..2dbddf0 100644 --- a/src/socket/socket.gateway.ts +++ b/src/socket/socket.gateway.ts @@ -787,6 +787,8 @@ export class SocketGateway ); this.game[roomId].roundTime = this.roomInfo[roomId].time; + if (this.ping[roomId]) this.handlePong(roomId); + await this.lastService.handleStart( roomId, this.roomInfo[roomId], @@ -909,6 +911,9 @@ export class SocketGateway this.game[roomId].option = this.socketService.getOption( this.roomInfo[roomId].option, ); + + if (this.ping[roomId]) this.handlePong(roomId); + await this.kungService.handleStart( roomId, this.roomInfo[roomId], @@ -1015,6 +1020,8 @@ export class SocketGateway } this.handleReady(roomId, client); + if (this.ping[roomId]) this.handlePong(roomId); + await this.bellService.handleStart( roomId, this.roomInfo[roomId],