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)