From 34f90a9b55d010a7ae861300b1b62af44ecd6cad Mon Sep 17 00:00:00 2001 From: Jacob McLemore Date: Wed, 20 Feb 2019 03:11:43 -0500 Subject: [PATCH] Tours: Fix a forfeit being reported as failed even though it succeeded (#5188) --- server/tournaments/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tournaments/index.js b/server/tournaments/index.js index 42c264700288..039cea3b8aa6 100644 --- a/server/tournaments/index.js +++ b/server/tournaments/index.js @@ -813,7 +813,7 @@ class Tournament { this.update(); } forfeit(user) { - this.disqualifyUser(user.userid, null, "You left the tournament", true); + return this.disqualifyUser(user.userid, null, "You left the tournament", true); } onConnect(user, connection) { this.updateFor(user, connection);