Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions server/jetstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,9 @@ func (s *Server) shutdownJetStream() {
qch, stopped = cc.qch, cc.stopped
cc.qch, cc.stopped = nil, nil
}
// Cancel any pending checkForOrphans timer so it cannot fire on a
// server that is already shutting down.
stopAndClearTimer(&cc.orphanTimer)
js.stopUpdatesSub()
if cc.c != nil {
cc.c.closeConnection(ClientClosed)
Expand Down
Loading