diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-26 10:55:16 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-26 10:55:16 +0200 |
commit | b87d6f15e09ee9ecaf0cafc9c61c4c23b98a7128 (patch) | |
tree | 5cb787ab0945b0214821137783c8b46aea53a867 | |
parent | 79c2358ceb2b915a49ed210a8a592c8a295b398c (diff) | |
download | server-b87d6f15e09ee9ecaf0cafc9c61c4c23b98a7128.tar.gz |
Fix crash when creating tournament pools.
-rw-r--r-- | server.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 { |