TUN-7477: Decrement UDP sessions on shutdown
When a tunnel connection is going down, any active UDP sessions need to be cleared and the metric needs to be decremented.
This commit is contained in:
parent
5e459fdbf7
commit
8cda225789
|
@ -92,7 +92,10 @@ func (m *manager) shutdownSessions(err error) {
|
|||
byRemote: true,
|
||||
}
|
||||
for _, s := range m.sessions {
|
||||
s.close(closeSessionErr)
|
||||
m.unregisterSession(&unregisterSessionEvent{
|
||||
sessionID: s.ID,
|
||||
err: closeSessionErr,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue