Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
d6bcd5dcc0
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      modules/xmpp/xmpp.js

+ 2
- 1
modules/xmpp/xmpp.js Parādīt failu

@@ -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;

Notiek ielāde…
Atcelt
Saglabāt