Quellcode durchsuchen

fix(kicked): leave the conference immediately

There is no reason to wait for for the event to be emitted.
release-8443
Hristo Terezov vor 1 Jahr
Ursprung
Commit
b31738320b
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1
    2
      JitsiConference.js

+ 1
- 2
JitsiConference.js Datei anzeigen

1950
     const actorParticipant = this.participants.get(actorId);
1950
     const actorParticipant = this.participants.get(actorId);
1951
 
1951
 
1952
     if (isSelfPresence) {
1952
     if (isSelfPresence) {
1953
+        this.leave().finally(() => this.xmpp.disconnect());
1953
         this.eventEmitter.emit(
1954
         this.eventEmitter.emit(
1954
             JitsiConferenceEvents.KICKED, actorParticipant, reason, isReplaceParticipant);
1955
             JitsiConferenceEvents.KICKED, actorParticipant, reason, isReplaceParticipant);
1955
 
1956
 
1956
-        this.leave().finally(() => this.xmpp.disconnect());
1957
-
1958
         return;
1957
         return;
1959
     }
1958
     }
1960
 
1959
 

Laden…
Abbrechen
Speichern