diff --git a/agent/ae/ae.go b/agent/ae/ae.go index 3d5568d950..d177ee7763 100644 --- a/agent/ae/ae.go +++ b/agent/ae/ae.go @@ -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() }