Fixed accounts configuration reload

Issues could manifest with subscription interest not properly
propagated.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2023-03-24 13:15:20 -06:00
parent bd1b7b8d55
commit fe5d6bede4
7 changed files with 365 additions and 198 deletions

View File

@@ -1787,7 +1787,7 @@ func (s *Server) remoteConnsUpdate(sub *subscription, c *client, _ *Account, sub
// This will import any system level exports.
func (s *Server) registerSystemImports(a *Account) {
if a == nil || !s.eventsEnabled() {
if a == nil || !s.EventsEnabled() {
return
}
sacc := s.SystemAccount()