mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
Fixed data race
Resolves #1176 Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -1257,7 +1257,7 @@ func (s *Server) debugSubscribers(sub *subscription, c *client, subject, reply s
|
||||
delete(s.sys.replies, replySubj)
|
||||
s.mu.Unlock()
|
||||
// Send the response.
|
||||
s.sendInternalAccountMsg(c.acc, reply, nsubs)
|
||||
s.sendInternalAccountMsg(c.acc, reply, atomic.LoadInt32(&nsubs))
|
||||
}()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user