From 8a0b86df10b5f9a7e3dbdafd19bbd1496be44c39 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 9 Jun 2014 12:57:50 -0700 Subject: [PATCH] agent: leave inSync until the defer runs --- command/agent/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/local.go b/command/agent/local.go index d501554d7c..d1457c7e5b 100644 --- a/command/agent/local.go +++ b/command/agent/local.go @@ -206,7 +206,7 @@ func (l *localState) UpdateCheck(checkID, status, output string) { l.changeMade() l.Unlock() }) - l.checkStatus[checkID] = syncStatus{deferSync: deferSync} + l.checkStatus[checkID] = syncStatus{inSync: true, deferSync: deferSync} } return }