mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Preact: Improve room leave handling (#2442)
This commit is contained in:
parent
9165bb48d7
commit
482bee7d2a
|
|
@ -1652,7 +1652,7 @@ export class PSRoom extends PSStreamModel<Args | null> implements RoomOptions {
|
|||
}
|
||||
destroy() {
|
||||
if (this.connected === true) {
|
||||
this.sendDirect('/noreply /leave');
|
||||
this.sendDirect(`/noreply /leave ${this.id}`);
|
||||
this.connected = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user