From 2148b379741fae873b423e3fe71b461e26c49dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20S=C3=A1?= Date: Wed, 9 Jun 2021 16:49:52 +0100 Subject: [PATCH] removed double reject() call from search&replace --- openvidu-node-client/src/OpenVidu.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/openvidu-node-client/src/OpenVidu.ts b/openvidu-node-client/src/OpenVidu.ts index b9f6b7c7..b29aaad5 100644 --- a/openvidu-node-client/src/OpenVidu.ts +++ b/openvidu-node-client/src/OpenVidu.ts @@ -479,12 +479,10 @@ export class OpenVidu { // The request was made but no response was received // `error.request` is an instance of XMLHttpRequest in the browser and an instance of // http.ClientRequest in node.js - reject(new Error(error.request)); reject(error); } else { // Something happened in setting up the request that triggered an Error reject(new Error(error.message)); - reject(new Error(error.message)); } }); });