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 840c264f45
commit 95e4f2dfe1
7 changed files with 362 additions and 194 deletions

View File

@@ -1717,7 +1717,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()