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:
Jared Tabor 2015-04-03 12:46:09 -04:00
parent c06ba1209e
commit aae91bbf37

View File

@ -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 () {