diff --git a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js index 2cd7b92ff1..e993869bc7 100644 --- a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js +++ b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js @@ -545,7 +545,12 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora that.updateResolutions(resolutions['validRes']); that.refreshVideoResolution(); - + // Checking if we have a failed connection attempt before + // connecting again. + if (data.instance && !data.instance.rpcClient.socketReady()) { + clearTimeout(data.instance.rpcClient.to); + data.instance.logout(); + }; data.instance = new jQuery.verto({ login: data.login + '@' + data.hostname, passwd: data.password,