summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-26 10:55:16 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-26 10:55:16 +0200
commitb87d6f15e09ee9ecaf0cafc9c61c4c23b98a7128 (patch)
tree5cb787ab0945b0214821137783c8b46aea53a867 /server.js
parent79c2358ceb2b915a49ed210a8a592c8a295b398c (diff)
downloadserver-b87d6f15e09ee9ecaf0cafc9c61c4c23b98a7128.tar.gz
Fix crash when creating tournament pools.
Diffstat (limited to 'server.js')
-rw-r--r--server.js6
1 files 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 {