Skip to content

Commit 69deb93

Browse files
authored
Update commandRunningCtrl.js
1 parent 9ff5fff commit 69deb93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

deployment/http-root/ajs/app/components/commands_panel/commandRunningCtrl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
function refreshFunc() {
2828
if (!ApplicationFocusService.isInFocus() && intervalTriggered > maxUpdatesNotInFocus) {
29-
interval = $timeout(refreshFunc, 5000,false);
29+
intervalHandler = $timeout(refreshFunc, 5000,false);
3030
return;
3131
}
3232
intervalTriggered++;
@@ -39,11 +39,11 @@
3939
vm.history = response;
4040
});
4141
}
42-
interval = $timeout(refreshFunc, 5000,false);
42+
intervalHandler = $timeout(refreshFunc, 5000,false);
4343
},
4444
error: function(err) {
4545
$log.error('commandRunningCtrl: ' + err);
46-
interval = $timeout(refreshFunc, 5000,false);
46+
intervalHandler = $timeout(refreshFunc, 5000,false);
4747
},
4848
dataType: 'json'
4949
});
@@ -53,4 +53,4 @@
5353
//// Angular Code ////
5454
angular.module('codeine').controller('commandRunningCtrl', commandRunningCtrl);
5555

56-
})(angular);
56+
})(angular);

0 commit comments

Comments
 (0)