mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 13:58:14 +00:00
can leave lobby
This commit is contained in:
@@ -43,6 +43,7 @@ export class GameServer {
|
||||
}
|
||||
}
|
||||
if (clientMsg.type == "leave") {
|
||||
// TODO: get rid of leave message, just use on close?
|
||||
const toRemove = this.clients.filter(c => c.id)
|
||||
if (toRemove.length == 0) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user