瀏覽代碼

fix(moderator.js): remove dead code

release-8443
paweldomas 9 年之前
父節點
當前提交
af8aa4bd2d
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0
    6
      modules/xmpp/moderator.js

+ 0
- 6
modules/xmpp/moderator.js 查看文件

@@ -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…
取消
儲存