mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-16 03:07:06 +02:00
Stop polling if fluentd-ui server is unreachable
This commit is contained in:
parent
161ca568c8
commit
f20e2a8906
@ -17,7 +17,10 @@
|
||||
self.alerts = alerts;
|
||||
})["catch"](function(xhr){
|
||||
if(xhr.status === 401) {
|
||||
clearInterval(timer);
|
||||
clearInterval(timer); // signed out
|
||||
}
|
||||
if(xhr.status === 0) {
|
||||
clearInterval(timer); // server unreachable (maybe down)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user