Protect access to c.acc

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2023-09-17 10:01:24 -07:00
parent 0d9328027f
commit 4e9cd9aa36

View File

@@ -2159,9 +2159,9 @@ func (s *Server) accountConnectEvent(c *client) {
MQTTClient: c.getMQTTClientID(),
},
}
subj := fmt.Sprintf(connectEventSubj, c.acc.Name)
c.mu.Unlock()
subj := fmt.Sprintf(connectEventSubj, c.acc.Name)
s.sendInternalMsgLocked(subj, _EMPTY_, &m.Server, &m)
}