mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2023-10-21 07:33:40 -05:00
Close publishers/subscribers if proxy session is closed.
This commit is contained in:
@@ -934,8 +934,11 @@ func (s *ProxyServer) DeleteSession(id uint64) {
|
||||
}
|
||||
|
||||
func (s *ProxyServer) deleteSessionLocked(id uint64) {
|
||||
delete(s.sessions, id)
|
||||
statsSessionsCurrent.Dec()
|
||||
if session, found := s.sessions[id]; found {
|
||||
delete(s.sessions, id)
|
||||
session.Close()
|
||||
statsSessionsCurrent.Dec()
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ProxyServer) StoreClient(id string, client signaling.McuClient) {
|
||||
|
||||
Reference in New Issue
Block a user