diff --git a/collector_event.go b/collector_event.go index eb6b9b2..b2d4147 100644 --- a/collector_event.go +++ b/collector_event.go @@ -15,7 +15,7 @@ func handleConfigLoaded() { coll := GetInstance() coll.start(confMng) - observer.Remove(messages.CRM_READY, ch) + //observer.Remove(messages.CRM_READY, ch) } func (c *Collector) notifyCollectorReady() { @@ -31,7 +31,7 @@ func (c *Collector) handleAgentWillStop() { observer.Add(messages.AGT_WILL_STOP, ch) data := <-ch c.Stop(data) - observer.Remove(messages.AGT_WILL_STOP, ch) + //observer.Remove(messages.AGT_WILL_STOP, ch) } func (c *Collector) handleSensorStart() {