Properly shut down the event queue on reconnect

This commit is contained in:
Casper Warden
2020-11-20 12:46:21 +00:00
parent 1c625b884c
commit 68eaf3f652

View File

@@ -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)