mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
dispose local media here when returning early as join takes ownership
This commit is contained in:
parent
c8bb5fffb0
commit
825602a04a
@ -191,6 +191,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
||||
join(localMedia: LocalMedia, log?: ILogItem): Promise<void> {
|
||||
return this.options.logger.wrapOrRun(log, "Call.join", async joinLog => {
|
||||
if (this._state !== GroupCallState.Created || this.joinedData || this.usesFoci) {
|
||||
localMedia.dispose();
|
||||
return;
|
||||
}
|
||||
const logItem = this.options.logger.child({
|
||||
|
Loading…
Reference in New Issue
Block a user