From ea18aeab18083a6c446833590269fddcfc416504 Mon Sep 17 00:00:00 2001 From: "insanity@loafle.com" Date: Thu, 11 May 2017 20:06:04 +0900 Subject: [PATCH] collector --- collector_event.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {