ae: do not trigger on Resume while holding the lock

pull/3609/head
Frank Schroeder 7 years ago
parent 92f136de12
commit cc0499da3d
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

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

Loading…
Cancel
Save