From bc9ea2af9a9c1b5f85527946300c37c3262fb316 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 d501554d7..d1457c7e5 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 }