Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only decrement server_interactive_sessions_total once per session
`session.Close` can get called multiple times, from different deferred cleanups. The associated metric decrement should only happen on the first call, to map 1:1 with increments. Without this, we could end up with negative `server_interactive_sessions_total` counts. Fixes #3755
- Loading branch information