Skip to content

Commit

Permalink
Merge pull request #4035 from influxdb/nil_chan
Browse files Browse the repository at this point in the history
Don't close nil channel in TSDB
  • Loading branch information
otoolep committed Sep 8, 2015
2 parents 5e46441 + 255fb33 commit 2dd621d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tsdb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2dd621d

Please sign in to comment.