From 67512125f7c3fe811540b41bda5ae0a8d594a8d2 Mon Sep 17 00:00:00 2001 From: geek Date: Tue, 16 May 2017 12:34:56 +0900 Subject: [PATCH] evt start code --- agent.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/agent.go b/agent.go index b1adae9..7b470cd 100644 --- a/agent.go +++ b/agent.go @@ -30,6 +30,12 @@ func StartAgent() { func (agt *Agent) startAgent() { //1. cfg start() //2. evt start() + evtStartChn := make(chan bool, 0) + err := evt.Start(evtStartChn) + if err != nil { + processError(err) + } + <- evtStartChn //3. dat start() datStarted := make(chan bool) dat.Start(datStarted, agt.cm.GetGlobalConfig())