Browse Source

* Fixed flawed logic in Pong backend

master
vvandenb 2 years ago
parent
commit
77caf5d4ec
  1. 8
      back/volume/src/pong/game/Game.ts

8
back/volume/src/pong/game/Game.ts

@ -110,14 +110,6 @@ export class Game {
}
async stop (): Promise<void> {
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) {

Loading…
Cancel
Save