Browse Source

Revert "ae: do not trigger on Resume while holding the lock"

This reverts commit bd00814301.
pull/3607/merge
Frank Schroeder 7 years ago
parent
commit
f8202f300f
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
  1. 5
      agent/ae/ae.go

5
agent/ae/ae.go

@ -313,9 +313,8 @@ func (s *StateSyncer) Resume() {
if s.paused < 0 { if s.paused < 0 {
panic("unbalanced pause/resume") panic("unbalanced pause/resume")
} }
trigger := s.paused == 0 if s.paused == 0 {
s.pauseLock.Unlock()
if trigger {
s.SyncChanges.Trigger() s.SyncChanges.Trigger()
} }
s.pauseLock.Unlock()
} }

Loading…
Cancel
Save