cleanup loops here to not get keys

This commit is contained in:
Bruno Windels 2023-01-27 10:02:13 +01:00
parent 43dea3bfdc
commit 365157449e

View File

@ -226,7 +226,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
this.emitChange(); this.emitChange();
}); });
// send invite to all members that are < my userId // send invite to all members that are < my userId
for (const [,member] of this._members) { for (const member of this._members.values()) {
this.connectToMember(member, joinedData, log); this.connectToMember(member, joinedData, log);
} }
}); });
@ -530,7 +530,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
disconnect(log: ILogItem): boolean { disconnect(log: ILogItem): boolean {
return this.errorBoundary.try(() => { return this.errorBoundary.try(() => {
if (this.hasJoined) { if (this.hasJoined) {
for (const [,member] of this._members) { for (const member of this._members.values()) {
const disconnectLogItem = member.disconnect(true); const disconnectLogItem = member.disconnect(true);
if (disconnectLogItem) { if (disconnectLogItem) {
log.refDetached(disconnectLogItem); log.refDetached(disconnectLogItem);