Parcourir la source

fix(xmpp): clear any last strophe errors on reconnect

If user experiences any failed reconnect during the entire
session, even if followed by a success, then
the "connectionFailed" flag will trigger
JitsiConnectionEvents.CONNECTION_FAILED on hang up while
processing the disconnected transition.
release-8443
paweldomas il y a 5 ans
Parent
révision
d6bcd5dcc0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      modules/xmpp/xmpp.js

+ 2
- 1
modules/xmpp/xmpp.js Voir le fichier

@@ -219,7 +219,8 @@ export default class XMPP extends Listenable {
219 219
 
220 220
             logger.info(`My Jabber ID: ${this.connection.jid}`);
221 221
 
222
-            this.lastErrorMsg = undefined;
222
+            // XmppConnection emits CONNECTED again on reconnect - a good opportunity to clear any "last error" flags
223
+            this._resetState();
223 224
 
224 225
             // Schedule ping ?
225 226
             const pingJid = this.connection.domain;

Chargement…
Annuler
Enregistrer