mirror of
https://github.com/status-im/consul.git
synced 2025-02-24 11:28:40 +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 {
|
if s.paused < 0 {
|
||||||
panic("unbalanced pause/resume")
|
panic("unbalanced pause/resume")
|
||||||
}
|
}
|
||||||
if s.paused == 0 {
|
trigger := s.paused == 0
|
||||||
|
s.pauseLock.Unlock()
|
||||||
|
if trigger {
|
||||||
s.SyncChanges.Trigger()
|
s.SyncChanges.Trigger()
|
||||||
}
|
}
|
||||||
s.pauseLock.Unlock()
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user