From 9ee27bb3925992b8e382ae20ce5d06b789bdd23a Mon Sep 17 00:00:00 2001 From: James Tanner Date: Fri, 30 Oct 2020 01:56:12 -0400 Subject: [PATCH] Fix: Playing the greeting delays other steps --- classes/Lobby.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Lobby.js b/classes/Lobby.js index 220bfcd..0996341 100644 --- a/classes/Lobby.js +++ b/classes/Lobby.js @@ -234,8 +234,8 @@ class Lobby { // Immediately save to the database. await lobby.save(); - // Play a greeting. - await lobby.speak('murder-your-friends'); + // Play a greeting, asynchronously. + lobby.speak('murder-your-friends').catch(() => {/* Do nothing */}); // Return the new lobby. return lobby;