Skip to content

Commit

Permalink
[#105] fix test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dwkang committed Nov 14, 2024
1 parent 6c0ea5f commit 51d990c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,14 @@ func (agent *agent) Shutdown() {
agent.cmdGrpc.close()
}

agent.pingTicker.Stop()
agent.pingDone <- true
agent.statTicker.Stop()
agent.statDone <- true
agent.urlStatTicker.Stop()
agent.urlStatDone <- true
if !agent.config.offGrpc {
agent.pingTicker.Stop()
agent.pingDone <- true
agent.statTicker.Stop()
agent.statDone <- true
agent.urlStatTicker.Stop()
agent.urlStatDone <- true
}
agent.workerWg.Wait()

if agent.agentGrpc != nil {
Expand Down

0 comments on commit 51d990c

Please sign in to comment.