mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-02 05:52:18 +02:00
Make sure "clientsMap" is updated so all clients are closed on shutdown.
This commit is contained in:
parent
952b8ae460
commit
bf68a15943
|
@ -490,6 +490,7 @@ func (c *GrpcClients) loadTargetsStatic(config *goconf.ConfigFile, fromReload bo
|
||||||
entry, found := clientsMap[target]
|
entry, found := clientsMap[target]
|
||||||
if !found {
|
if !found {
|
||||||
entry = &grpcClientsList{}
|
entry = &grpcClientsList{}
|
||||||
|
clientsMap[target] = entry
|
||||||
}
|
}
|
||||||
entry.clients = append(entry.clients, client)
|
entry.clients = append(entry.clients, client)
|
||||||
clients = append(clients, client)
|
clients = append(clients, client)
|
||||||
|
|
Loading…
Reference in a new issue