mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user