Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure existing timer is cleared before creating a new one
We have seen some unexpected network requests for logs in error cases, e.g. pod not ready, but have not been able to reliably reproduce them. Ensure we clear any existing timer before starting a new one to ensure we're not left with any remaining unaccounted for timers when navigating away from the logs tab. Also change existing use of `clearInterval` to `clearTimeout` for clarity. Both use the same pool of ids and so are interchangeable, but we should be consistent to avoid confusion.
- Loading branch information