diff --git a/tsdb/store.go b/tsdb/store.go index b1a86cf9499..0bbed15af6f 100644 --- a/tsdb/store.go +++ b/tsdb/store.go @@ -361,7 +361,9 @@ func (s *Store) Close() error { return err } } - close(s.closing) + if s.closing != nil { + close(s.closing) + } s.closing = nil s.shards = nil s.databaseIndexes = nil