Kaynağa Gözat

fix(moderator): clears session ID on 'non-acceptable'

Currently Jicofo does not include 'session-invalid' tag when there is
"machine ID" and "session ID" mismatch, but in such case the session-id
must be cleared as well. Otherwise we'll end up in an endless loop.
tags/v0.0.2
paweldomas 8 yıl önce
ebeveyn
işleme
60ad3e654a
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3
    1
      modules/xmpp/moderator.js

+ 3
- 1
modules/xmpp/moderator.js Dosyayı Görüntüle

@@ -357,7 +357,9 @@ Moderator.prototype.allocateConferenceFocus = function(callback) {
357 357
 Moderator.prototype._allocateConferenceFocusError = function(error, callback) {
358 358
     // If the session is invalid, remove and try again without session ID to get
359 359
     // a new one
360
-    const invalidSession = $(error).find('>error>session-invalid').length;
360
+    const invalidSession
361
+        = $(error).find('>error>session-invalid').length
362
+            || $(error).find('>error>not-acceptable').length;
361 363
 
362 364
     if (invalidSession) {
363 365
         logger.info('Session expired! - removing');

Loading…
İptal
Kaydet