mirror of https://github.com/OpenVidu/openvidu.git
openvidu-node-client: Don't handle error on fetch if session is found
parent
c0fa49af8d
commit
be7634c821
|
@ -524,9 +524,7 @@ export class Session {
|
|||
if (!!error.response && error.response.status === 409) {
|
||||
// 'customSessionId' already existed
|
||||
this.sessionId = this.properties.customSessionId;
|
||||
this.fetch()
|
||||
.then(() => resolve(this.sessionId))
|
||||
.catch((error) => !rejected && this.ov.handleError(error, reject));
|
||||
this.fetch().then(() => resolve(this.sessionId));
|
||||
} else {
|
||||
!rejected && this.ov.handleError(error, reject);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue