Move diff from nspcc master and support branches #28
1 changed files with 4 additions and 1 deletions
|
@ -261,7 +261,10 @@ func (s *Shard) Close() error {
|
|||
}
|
||||
}
|
||||
|
||||
s.gc.stop()
|
||||
// If Init/Open was unsuccessful gc can be nil.
|
||||
if s.gc != nil {
|
||||
s.gc.stop()
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue