mirror of
https://github.com/status-im/consul.git
synced 2025-02-24 03:18:26 +00:00
ae: do not trigger on Resume while holding the lock
This commit is contained in:
parent
c32915bb4f
commit
bd00814301
@ -313,8 +313,9 @@ func (s *StateSyncer) Resume() {
|
||||
if s.paused < 0 {
|
||||
panic("unbalanced pause/resume")
|
||||
}
|
||||
if s.paused == 0 {
|
||||
trigger := s.paused == 0
|
||||
s.pauseLock.Unlock()
|
||||
if trigger {
|
||||
s.SyncChanges.Trigger()
|
||||
}
|
||||
s.pauseLock.Unlock()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user