From 68eaf3f65229230c112e131cdb937ca28e2c5c51 Mon Sep 17 00:00:00 2001 From: Casper Warden <216465704+casperwardensl@users.noreply.github.com> Date: Fri, 20 Nov 2020 12:46:21 +0000 Subject: [PATCH] Properly shut down the event queue on reconnect --- lib/classes/Region.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/classes/Region.ts b/lib/classes/Region.ts index acad48b..f0c871f 100644 --- a/lib/classes/Region.ts +++ b/lib/classes/Region.ts @@ -1006,6 +1006,10 @@ export class Region activateCaps(seedURL: string) { + if (this.caps !== undefined) + { + this.caps.shutdown(); + } this.caps = new Caps(this.agent, this, seedURL, this.clientEvents); } async handshake(handshake: RegionHandshakeMessage)