agent: fix anti-entropy check sync

This commit is contained in:
Ryan Uber 2015-04-09 10:40:05 -07:00
parent f417279761
commit 7e170b047e
1 changed files with 5 additions and 1 deletions

View File

@ -340,10 +340,14 @@ func (l *localState) setSyncState() error {
for id, _ := range l.checks { for id, _ := range l.checks {
// Sync any check which doesn't exist on the remote side // Sync any check which doesn't exist on the remote side
found := false
for _, check := range checks { for _, check := range checks {
if check.CheckID == id { if check.CheckID == id {
continue found = true
break
} }
}
if !found {
l.checkStatus[id] = syncStatus{inSync: false} l.checkStatus[id] = syncStatus{inSync: false}
} }
} }