openvidu-node-client: Don't handle error on fetch if session is found

pull/803/head
cruizba 2023-05-17 17:42:59 +02:00
parent c0fa49af8d
commit be7634c821
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}