fix deadlock

This commit is contained in:
Adphi 2020-11-06 16:43:48 +01:00
parent 1cbcbf9ecd
commit c4d0ef3c08
1 changed files with 0 additions and 2 deletions

View File

@ -160,8 +160,6 @@ func (s *service) Stop() error {
}
func (s *service) Close() error {
s.mu.Lock()
defer s.mu.Unlock()
err := multierr.Combine(s.Stop())
if s.opts.db != nil {
err = multierr.Append(s.opts.db.Close(), err)