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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If Init/Open was unsuccessful gc can be nil.
|
||||||
|
if s.gc != nil {
|
||||||
s.gc.stop()
|
s.gc.stop()
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue