Don't close nil channel
Obviously a TSDB store may be closed before it's opened.pull/4035/head
parent
2824a9c92a
commit
255fb3364d
|
@ -361,7 +361,9 @@ func (s *Store) Close() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(s.closing)
|
if s.closing != nil {
|
||||||
|
close(s.closing)
|
||||||
|
}
|
||||||
s.closing = nil
|
s.closing = nil
|
||||||
s.shards = nil
|
s.shards = nil
|
||||||
s.databaseIndexes = nil
|
s.databaseIndexes = nil
|
||||||
|
|
Loading…
Reference in New Issue