Skip to content

Commit

Permalink
agents: clear env_metrics_map_ on destruction
Browse files Browse the repository at this point in the history
This way, when starting/stopping/starting the agent, we will be able to
keep track of the current JS threads.
  • Loading branch information
santigimeno committed Feb 20, 2024
1 parent 19878a3 commit bf85507
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion agents/statsd/src/statsd_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ void StatsDAgent::do_stop() {
shutdown_.close();
metrics_timer_.close();
retry_timer_.close();
env_metrics_map_.clear();
}

void StatsDAgent::run_(nsuv::ns_thread*, StatsDAgent* agent) {
Expand Down

0 comments on commit bf85507

Please sign in to comment.