Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Fix: Playing the greeting delays other steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jftanner committed Oct 30, 2020
1 parent 1757a3a commit 9ee27bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Lobby.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ee27bb

Please sign in to comment.