From aae91bbf37844f1b4cac599a0d9101d4f0b33288 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 3 Apr 2015 12:46:09 -0400 Subject: [PATCH] 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. --- awx/ui/static/js/shared/Socket.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/ui/static/js/shared/Socket.js b/awx/ui/static/js/shared/Socket.js index 1f01588de8..9f676a6bed 100644 --- a/awx/ui/static/js/shared/Socket.js +++ b/awx/ui/static/js/shared/Socket.js @@ -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 () {