提交 eefe2153 authored 作者: Italo Rossi's avatar Italo Rossi

FS-8048 [verto_communicator] #resolve Fixing infinite reconnect after changing…

FS-8048 [verto_communicator] #resolve Fixing infinite reconnect after changing hostname and websocket url.
上级 2eb95745
...@@ -545,7 +545,12 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora ...@@ -545,7 +545,12 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
that.updateResolutions(resolutions['validRes']); that.updateResolutions(resolutions['validRes']);
that.refreshVideoResolution(); 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({ data.instance = new jQuery.verto({
login: data.login + '@' + data.hostname, login: data.login + '@' + data.hostname,
passwd: data.password, passwd: data.password,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论