diff --git a/web/plates/js/status.js b/web/plates/js/status.js index 842331d9b..5f42e23ec 100755 --- a/web/plates/js/status.js +++ b/web/plates/js/status.js @@ -26,7 +26,8 @@ function StatusCtrl($rootScope, $scope, $state, $http, $interval) { // $scope.ConnectStyle = "label-danger"; $scope.ConnectState = "Disconnected"; $scope.$apply(); - setTimeout(connect, 1000); + delete $scope.socket; + setTimeout(function() {connect($scope);}, 1000); }; socket.onerror = function (msg) {