Browse Source

fix(moderator.js): remove dead code

dev1
paweldomas 9 years ago
parent
commit
af8aa4bd2d
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      modules/xmpp/moderator.js

+ 0
- 6
modules/xmpp/moderator.js View File

@@ -366,12 +366,6 @@ Moderator.prototype._allocateConferenceFocusError = function (error, callback) {
366 366
                 () => this.allocateConferenceFocus(callback));
367 367
         return;
368 368
     }
369
-    if(this.retries >= this.maxRetries) {
370
-        this.eventEmitter.emit(
371
-                XMPPEvents.ALLOCATE_FOCUS_MAX_RETRIES_ERROR);
372
-        return;
373
-    }
374
-    this.retries++;
375 369
     var waitMs = this.getNextErrorTimeout();
376 370
     var errmsg = "Focus error, retry after "+ waitMs;
377 371
     GlobalOnErrorHandler.callErrorHandler(new Error(errmsg));

Loading…
Cancel
Save