From: Italo Rossi Date: Thu, 27 Aug 2015 04:01:04 +0000 (-0300) Subject: FS-8048 [verto_communicator] #resolve Fixing infinite reconnect after changing hostna... X-Git-Tag: v1.6.2~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eefe21536d25f044521d468209b2a6554e7016cd;p=thirdparty%2Ffreeswitch.git FS-8048 [verto_communicator] #resolve Fixing infinite reconnect after changing hostname and websocket url. --- 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,