diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index 219ea51d..20866b85 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -91,8 +91,11 @@ function piholeChange(action, duration) if(data.status === "disabled") { btnStatus.html(""); piholeChanged("disabled"); - enaT.html(new Date().getTime() + duration * 1000); - setTimeout(countDown,100); + if(duration > 0) + { + enaT.html(new Date().getTime() + duration * 1000); + setTimeout(countDown,100); + } } }); break;