diff --git a/src/server/MapPlaylist.ts b/src/server/MapPlaylist.ts index 3b1fa3e0e..8a036b81b 100644 --- a/src/server/MapPlaylist.ts +++ b/src/server/MapPlaylist.ts @@ -156,7 +156,7 @@ export class MapPlaylist { const maxAttempts = 6; let attempts = 0; - do { + while (true) { const map = this.tryFirstMap(type); const config = await this.buildConfig(type, map); attempts++; @@ -167,7 +167,7 @@ export class MapPlaylist { } this.firstMapToLast(type); - } while (true); // eslint-disable-line no-constant-condition + } } private async buildConfig(