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

Commit

Permalink
Fix: Inactivity timeout not cleared on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
jftanner committed Oct 24, 2020
1 parent 604b01b commit 23e58c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/Lobby.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,9 @@ class Lobby {
this.cancelScheduledSave();
await database.delete(this._document);

// Clear the timeout.
if (this._inactivityTimeout) clearTimeout(this._inactivityTimeout);

this.emit("Destroyed");
}

Expand Down

0 comments on commit 23e58c4

Please sign in to comment.