mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-13 17:58:00 -07:00
Fix for reload race on global account
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -264,7 +264,7 @@ func (a *Account) addClient(c *client) int {
|
||||
}
|
||||
}
|
||||
a.mu.Unlock()
|
||||
if c != nil && c.srv != nil && a != c.srv.gacc && added {
|
||||
if c != nil && c.srv != nil && a != c.srv.globalAccount() && added {
|
||||
c.srv.accConnsUpdate(a)
|
||||
}
|
||||
return n
|
||||
|
||||
Reference in New Issue
Block a user