mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-22 02:46:25 +00:00
fix deadlock
This commit is contained in:
parent
1cbcbf9ecd
commit
c4d0ef3c08
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user