evt start code

This commit is contained in:
geek 2017-05-16 12:34:56 +09:00
parent 072de33afb
commit 67512125f7

View File

@ -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())