From f8202f300f7410602fe42cbdcc56d18d96018cc5 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Mon, 23 Oct 2017 10:08:32 +0200 Subject: [PATCH] Revert "ae: do not trigger on Resume while holding the lock" This reverts commit bd00814301bbf5db037e739e91a0b66ebb564821. --- agent/ae/ae.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agent/ae/ae.go b/agent/ae/ae.go index d177ee7763..3d5568d950 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() }