Commit 5eafe61
committed
fix: only log session closure metric if previously established
- Add condition to ensure `_metrics.SessionClosed()` is called only when the session was in an established state before transitioning to Idle.
- Prevents misleading metrics logging for sessions that didn’t reach the established state.1 parent d0e1cb8 commit 5eafe61
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | | - | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
0 commit comments