mirror of https://github.com/coder/coder.git
fix(enterprise/replicasync): Avoid deadlock during Close^2 (#7230)
This commit is contained in:
parent
34c6ad671c
commit
38a6d546ab
|
@ -371,8 +371,8 @@ func (m *Manager) Close() error {
|
|||
}
|
||||
close(m.closed)
|
||||
m.closeCancel()
|
||||
m.closeWait.Wait()
|
||||
m.closeMutex.Unlock()
|
||||
m.closeWait.Wait()
|
||||
m.mutex.Lock()
|
||||
defer m.mutex.Unlock()
|
||||
ctx, cancelFunc := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
|
|
Loading…
Reference in New Issue