Sfoglia il codice sorgente

fix(xmpp): allow to close the connection while connecting

User may decide to abort the connection while it's stuck at connecting.
master
paweldomas 7 anni fa
parent
commit
17ca8194eb
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1
    3
      modules/xmpp/xmpp.js

+ 1
- 3
modules/xmpp/xmpp.js Vedi File

@@ -429,9 +429,7 @@ export default class XMPP extends Listenable {
429 429
      * disconnect from the XMPP server (e.g. beforeunload, unload).
430 430
      */
431 431
     disconnect(ev) {
432
-        if (this.disconnectInProgress
433
-                || !this.connection
434
-                || !this.connection.connected) {
432
+        if (this.disconnectInProgress || !this.connection) {
435 433
             this.eventEmitter.emit(JitsiConnectionEvents.WRONG_STATE);
436 434
 
437 435
             return;

Loading…
Annulla
Salva