소스 검색

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.
master
paweldomas 8 년 전
부모
커밋
60ad3e654a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      modules/xmpp/moderator.js

+ 3
- 1
modules/xmpp/moderator.js 파일 보기

@@ -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…
취소
저장