From b87d6f15e09ee9ecaf0cafc9c61c4c23b98a7128 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 26 Oct 2024 10:55:16 +0200 Subject: Fix crash when creating tournament pools. --- server.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 9c34019..ec6e4ca 100644 --- a/server.js +++ b/server.js @@ -3262,8 +3262,10 @@ function start_tournament_seed_mc(seed_id, level) { console.log("TM SPAWN SEED (MC)", seed.seed_name, level, queue.length) let players = filter_queue_through_blacklist(queue, seed.pool_size, blacklist) - if (!players) - throw new Error("Too many blacklisted players to form pool!") + if (!players) { + console.log("Too many blacklisted players to form pool!") + return + } SQL_BEGIN.run() try { -- cgit v1.2.3