diff --git a/internal/websocket/staleClients.go b/internal/websocket/staleClients.go index 9bb354b..456ef11 100644 --- a/internal/websocket/staleClients.go +++ b/internal/websocket/staleClients.go @@ -14,6 +14,7 @@ func RemoveStaleClients() { for _, client := range Clients { if client.IsStale() { client.Conn.Close() + delete(Clients, client.Conn.LocalAddr()) } } mu.Unlock()