mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-03-19 17:01:55 +08:00
Fix user left message in sessions showing up twice
This commit is contained in:
parent
c54641538c
commit
a5e9b8a567
@ -311,6 +311,7 @@ EditSession.Client = class {
|
||||
this.conn.send(tag)
|
||||
}
|
||||
disconnect(e) {
|
||||
if (!EditSession.clients[this.id]) return;
|
||||
Blockbench.dispatchEvent('user_leaves_session', this)
|
||||
delete EditSession.peer.connections[this.conn.peer];
|
||||
delete EditSession.clients[this.id];
|
||||
|
Loading…
x
Reference in New Issue
Block a user