fix deadlock

This commit is contained in:
Adphi 2020-11-06 16:43:48 +01:00
parent 1cbcbf9ecd
commit c4d0ef3c08

View File

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