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