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() { func (agt *Agent) startAgent() {
//1. cfg start() //1. cfg start()
//2. evt start() //2. evt start()
evtStartChn := make(chan bool, 0)
err := evt.Start(evtStartChn)
if err != nil {
processError(err)
}
<- evtStartChn
//3. dat start() //3. dat start()
datStarted := make(chan bool) datStarted := make(chan bool)
dat.Start(datStarted, agt.cm.GetGlobalConfig()) dat.Start(datStarted, agt.cm.GetGlobalConfig())