Author: ygrego Date: 2015-04-02 07:50:27 +0000 (Thu, 02 Apr 2015) New Revision: 1042 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1042 Log: No "reject" called in method "onchangeState" when there is a error. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-04-01 22:18:29 UTC (rev 1041) +++ oipf/js/test/VideoBroadcastTest.js 2015-04-02 07:50:27 UTC (rev 1042) @@ -78,15 +78,9 @@ var error = currentTransition.error; console.log(this.vidBroadObj.playState); if (begin == this.previousState && end == newState && error == errorCode) { - if (this.errorMap[errorCode]) { - console.log(this.errorMap[errorCode]); - reject(this.errorMap[errorCode]); - } else { - currentTransition.callback && currentTransition.callback(); - this.previousState = newState; - this.currentIndex++; - } - + currentTransition.callback && currentTransition.callback(); + this.previousState = newState; + this.currentIndex++; } else { // if (begin == this.CONNECTING