diff --git a/pkg/agent/core.go b/pkg/agent/core.go index 8a1a8c6..10487ad 100644 --- a/pkg/agent/core.go +++ b/pkg/agent/core.go @@ -328,7 +328,9 @@ func (s *agentCore) State() string { } func (s *agentCore) notifyChange() { + s.changeMu.Lock() s.changeCond.Broadcast() + s.changeMu.Unlock() } // WaitChange blocks until the named field changes from current, then returns