Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplicated
setTimeout
in error
callback
https://api.jquery.com/jQuery.ajax/ According to JQuery doc, `complete` will be called whether the ajax request succeeds or fails. As a result, `_refreshClusterStatus` will generates two new scheduled calls if the ajax request gets an error response (one by `error` and one by `complete`). If `_refreshClusterStatus` keeps getting error responses (e.g. token has expired), it will generate a huge number of requests (doubles every 30s)
- Loading branch information