Camera was not properly closed in EnableCameraScene

This commit is contained in:
David Négrier 2020-08-31 14:54:52 +02:00
parent 4d90d4b50b
commit c739037bc4
2 changed files with 28 additions and 11 deletions

View file

@ -266,6 +266,9 @@ export class EnableCameraScene extends Phaser.Scene {
this.soundMeter.stop();
window.removeEventListener('resize', this.repositionCallback);
mediaManager.stopCamera();
mediaManager.stopMicrophone();
// Do we have a start URL in the address bar? If so, let's redirect to this address
const instanceAndMapUrl = this.findMapUrl();
if (instanceAndMapUrl !== null) {