|
|
@@ -1202,6 +1202,8 @@ ${ commonshare() | n,unicode }
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ var refreshLogsTimeout = null;
|
|
|
+
|
|
|
function refreshLogs() {
|
|
|
if (viewModel.currentScript().watchUrl() != "") {
|
|
|
$.getJSON(viewModel.currentScript().watchUrl(), function (data) {
|
|
|
@@ -1244,7 +1246,7 @@ ${ commonshare() | n,unicode }
|
|
|
else {
|
|
|
$.jHueTitleUpdater.reset();
|
|
|
}
|
|
|
- window.setTimeout(function () {
|
|
|
+ refreshLogsTimeout = window.setTimeout(function () {
|
|
|
refreshLogs();
|
|
|
}, 1000);
|
|
|
}
|
|
|
@@ -1252,6 +1254,7 @@ ${ commonshare() | n,unicode }
|
|
|
viewModel.currentScript().actions(data.workflow.actions);
|
|
|
viewModel.currentScript().isRunning(false);
|
|
|
$.jHueTitleUpdater.reset();
|
|
|
+ clearTimeout(refreshLogsTimeout);
|
|
|
}
|
|
|
});
|
|
|
}
|