|
|
@@ -361,17 +361,9 @@ Moderator.prototype._allocateConferenceFocusError = function (error, callback) {
|
|
361
|
361
|
//FIXME "is external" should come either from the focus or config.js
|
|
362
|
362
|
this.externalAuthEnabled = true;
|
|
363
|
363
|
}
|
|
364
|
|
- this.eventEmitter.emit(
|
|
365
|
|
- XMPPEvents.AUTHENTICATION_REQUIRED,
|
|
366
|
|
- () => this.allocateConferenceFocus(callback));
|
|
367
|
|
- return;
|
|
368
|
|
- }
|
|
369
|
|
- if(this.retries >= this.maxRetries) {
|
|
370
|
|
- this.eventEmitter.emit(
|
|
371
|
|
- XMPPEvents.ALLOCATE_FOCUS_MAX_RETRIES_ERROR);
|
|
|
364
|
+ this.eventEmitter.emit(XMPPEvents.AUTHENTICATION_REQUIRED);
|
|
372
|
365
|
return;
|
|
373
|
366
|
}
|
|
374
|
|
- this.retries++;
|
|
375
|
367
|
var waitMs = this.getNextErrorTimeout();
|
|
376
|
368
|
var errmsg = "Focus error, retry after "+ waitMs;
|
|
377
|
369
|
GlobalOnErrorHandler.callErrorHandler(new Error(errmsg));
|