Skip to content

Commit

Permalink
[FIXED] Data race, protect access to c.acc (#4550)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>

Resolves #4549
  • Loading branch information
derekcollison committed Sep 17, 2023
2 parents 0d93280 + 4e9cd9a commit 6f38056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/events.go
Expand Up @@ -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)
}

Expand Down

0 comments on commit 6f38056

Please sign in to comment.