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

This reverts commit bd00814301bbf5db037e739e91a0b66ebb564821.
This commit is contained in:
Frank Schroeder 2017-10-23 10:08:32 +02:00
parent 655a24e383
commit c27a2f1c66
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 2 additions and 3 deletions

View File

@ -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()
}