diff --git a/JitsiConference.js b/JitsiConference.js index 8c5daf8831..c7ca319c17 100644 --- a/JitsiConference.js +++ b/JitsiConference.js @@ -1950,11 +1950,10 @@ JitsiConference.prototype.onMemberKicked = function( const actorParticipant = this.participants.get(actorId); if (isSelfPresence) { + this.leave().finally(() => this.xmpp.disconnect()); this.eventEmitter.emit( JitsiConferenceEvents.KICKED, actorParticipant, reason, isReplaceParticipant); - this.leave().finally(() => this.xmpp.disconnect()); - return; }