From efcc15a109e6e4fdf14fb305a14e44fb678b1b30 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Tue, 27 Jun 2023 16:20:20 +0200 Subject: [PATCH] openvidu-browser: fix wrong call to onreconnected --- .../clients/transports/webSocketWithReconnection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvidu-browser/src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/clients/transports/webSocketWithReconnection.js b/openvidu-browser/src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/clients/transports/webSocketWithReconnection.js index abc1bbb5..6888dca8 100644 --- a/openvidu-browser/src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/clients/transports/webSocketWithReconnection.js +++ b/openvidu-browser/src/OpenViduInternal/KurentoUtils/kurento-jsonrpc/clients/transports/webSocketWithReconnection.js @@ -112,7 +112,7 @@ function WebSocketWithReconnection(config) { Logger.debug('Reconnected to ' + wsUri + ' after ' + numRetries + ' attempts...'); reconnecting = false; registerMessageHandler(); - if (config.onreconnected()) { + if (config.onreconnected) { config.onreconnected(); } ws.onclose = reconnectionOnClose;