diff --git a/agent.go b/agent.go index 038c934..efd79e9 100644 --- a/agent.go +++ b/agent.go @@ -134,6 +134,8 @@ func (agt *Agent) stopAgent() { //evt result evt.AddEventData(msg.TaskResult{msg.AGT_STOP, true, nil }) //evt stop() + evt.Stop() + } func (agt *Agent) processStartSensor(task msg.AgentTask) {