From 77caf5d4ecaea1a1f79075ae13c9b0cb10f7d6da Mon Sep 17 00:00:00 2001 From: vvandenb Date: Mon, 13 Mar 2023 20:24:20 +0100 Subject: [PATCH] * Fixed flawed logic in Pong backend --- back/volume/src/pong/game/Game.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/back/volume/src/pong/game/Game.ts b/back/volume/src/pong/game/Game.ts index fa6a863..5481711 100644 --- a/back/volume/src/pong/game/Game.ts +++ b/back/volume/src/pong/game/Game.ts @@ -110,14 +110,6 @@ export class Game { } async stop (): Promise { - if (this.waitingForTimeout) { - new Promise((resolve) => setTimeout(resolve, 1000)) - .then(() => { - void this.stop() - }) - .catch(() => {}) - } - if (this.timer !== null) { await this.pongService.saveResult(this.players, this.ranked) if (this.players.length !== 0) {