mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix for isGroupLeaderless when JS not available (due to shutdown)
Signed-off-by: Waldemar Quevedo <wally@nats.io>
This commit is contained in:
@@ -739,7 +739,7 @@ func (js *jetStream) isLeaderless() bool {
|
||||
|
||||
// Will respond iff we are a member and we know we have no leader.
|
||||
func (js *jetStream) isGroupLeaderless(rg *raftGroup) bool {
|
||||
if rg == nil {
|
||||
if rg == nil || js == nil {
|
||||
return false
|
||||
}
|
||||
js.mu.RLock()
|
||||
|
||||
Reference in New Issue
Block a user