mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
@@ -2849,10 +2849,11 @@ func (s *Server) removeStream(ourID string, mset *stream, nsa *streamAssignment)
|
||||
}
|
||||
|
||||
// Make sure this node is no longer attached to our stream assignment.
|
||||
js, _ := s.getJetStreamCluster()
|
||||
js.mu.Lock()
|
||||
nsa.Group.node = nil
|
||||
js.mu.Unlock()
|
||||
if js, _ := s.getJetStreamCluster(); js != nil {
|
||||
js.mu.Lock()
|
||||
nsa.Group.node = nil
|
||||
js.mu.Unlock()
|
||||
}
|
||||
|
||||
// wait for monitor to be shut down
|
||||
mset.monitorWg.Wait()
|
||||
|
||||
Reference in New Issue
Block a user