From 482bee7d2ab043861a286e9e85126be796e5c3b4 Mon Sep 17 00:00:00 2001 From: Distrib Date: Tue, 27 May 2025 02:01:24 +0200 Subject: [PATCH] Preact: Improve room leave handling (#2442) --- play.pokemonshowdown.com/src/client-main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/src/client-main.ts b/play.pokemonshowdown.com/src/client-main.ts index 13ca9c14e..249506b52 100644 --- a/play.pokemonshowdown.com/src/client-main.ts +++ b/play.pokemonshowdown.com/src/client-main.ts @@ -1652,7 +1652,7 @@ export class PSRoom extends PSStreamModel implements RoomOptions { } destroy() { if (this.connected === true) { - this.sendDirect('/noreply /leave'); + this.sendDirect(`/noreply /leave ${this.id}`); this.connected = false; } }