also allow clean up while still in Joining state, otherwise we get stuck

in joined state but without joinedData
This commit is contained in:
Bruno Windels 2022-09-30 11:17:54 +02:00
parent 282cba0ff1
commit b5f686b10e

View File

@ -437,7 +437,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
/** @internal */
disconnect(log: ILogItem) {
if (this._state === GroupCallState.Joined) {
if (this.hasJoined) {
for (const [,member] of this._members) {
const disconnectLogItem = member.disconnect(true);
if (disconnectLogItem) {