Browse Source

ae: do not trigger on Resume while holding the lock

pull/3609/head
Frank Schroeder 7 years ago
parent
commit
cc0499da3d
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,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()
}

Loading…
Cancel
Save