From be7634c82136d7a716c27f6bdbc8e3ba9b4281c3 Mon Sep 17 00:00:00 2001 From: cruizba Date: Wed, 17 May 2023 17:42:59 +0200 Subject: [PATCH] openvidu-node-client: Don't handle error on fetch if session is found --- openvidu-node-client/src/Session.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openvidu-node-client/src/Session.ts b/openvidu-node-client/src/Session.ts index 7bb20a45..38704f16 100644 --- a/openvidu-node-client/src/Session.ts +++ b/openvidu-node-client/src/Session.ts @@ -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); }