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