Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit 5c08363

Browse files
authored
Added close reason
1 parent ba17f1f commit 5c08363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ class Pangine {
160160
}
161161

162162

163-
close(lobbyID) {
163+
close(lobbyID, reason=null) {
164164
let lobby = this.lobbies.get(lobbyID);
165165
this.lobbies.delete(lobbyID);
166-
this.events.closeLobby.fire(lobby);
166+
this.events.closeLobby.fire(lobby, reason);
167167
}
168168

169169

0 commit comments

Comments
 (0)