Browse 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.
dev1
paweldomas 5 years ago
parent
commit
d6bcd5dcc0
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      modules/xmpp/xmpp.js

+ 2
- 1
modules/xmpp/xmpp.js View File

219
 
219
 
220
             logger.info(`My Jabber ID: ${this.connection.jid}`);
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
             // Schedule ping ?
225
             // Schedule ping ?
225
             const pingJid = this.connection.domain;
226
             const pingJid = this.connection.domain;

Loading…
Cancel
Save