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;