mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Socket.js
clearing out setInterval timer that tries to reconnect the client to the socket service from within the socket controller for cases where the auth token is expired.
This commit is contained in:
parent
c06ba1209e
commit
aae91bbf37
@ -107,6 +107,9 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
|
||||
|
||||
if (token_actual === token) {
|
||||
self.socket.socket.disconnect();
|
||||
if($rootScope.dashboardInterval){
|
||||
window.clearInterval($rootScope.dashboardInterval);
|
||||
}
|
||||
}
|
||||
|
||||
self.scope.$apply(function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user