Permalink
Browse files

WebUI: Switching between ie. active/failed non-stop. Fixes #132 - Das…

…hboard Weird Behaviour
  • Loading branch information...
1 parent 4cfce7f commit 0d5090234ee4d7f8ce51c59167611398a77b8ff6 Linus Larsson committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http/public/javascripts/main.js
@@ -157,7 +157,7 @@ function pollForJobs(state, ms) {
o('h1').text(state);
refreshJobs(state, function(){
infiniteScroll();
- pollForJobs.timer = setTimeout(function(){
+ if(!pollForJobs.timer) pollForJobs.timer = setTimeout(function(){
pollForJobs(state, ms);
}, 1000);
});

0 comments on commit 0d50902

Please sign in to comment.