Merge pull request #642 from tabascoeye/patch-1
cleanup when closing the scene
This commit is contained in:
commit
39194b5531
@ -708,6 +708,10 @@ export class GameScene extends ResizableScene implements CenterListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public cleanupClosingScene(): void {
|
public cleanupClosingScene(): void {
|
||||||
|
// stop playing audio, close any open website, stop any open Jitsi
|
||||||
|
coWebsiteManager.closeCoWebsite();
|
||||||
|
this.stopJitsi();
|
||||||
|
this.playAudio(undefined);
|
||||||
// We are completely destroying the current scene to avoid using a half-backed instance when coming back to the same map.
|
// We are completely destroying the current scene to avoid using a half-backed instance when coming back to the same map.
|
||||||
if(this.connection) {
|
if(this.connection) {
|
||||||
this.connection.closeConnection();
|
this.connection.closeConnection();
|
||||||
|
Loading…
Reference in New Issue
Block a user