FS-8048 [verto_communicator] #resolve Fixing infinite reconnect after changing hostname and websocket url.
This commit is contained in:
parent
2eb957453f
commit
eefe21536d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue