mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(enterprise/replicasync): Avoid deadlock during Close^2 (#7230)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user