Skip to content

Commit

Permalink
metrics: nullify metrics_slot on agent when disabling
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Kemel <mkemel@redhat.com>
  • Loading branch information
mkemel committed Feb 22, 2024
1 parent 9eb9eb0 commit 1ff9217
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/agent/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,7 @@ static int agent_method_disable_metrics(sd_bus_message *m, void *userdata, UNUSE
}
agent->metrics_enabled = false;
sd_bus_slot_unrefp(&agent->metrics_slot);
agent->metrics_slot = NULL;
bc_log_debug("Metrics disabled");
return sd_bus_reply_method_return(m, "");
}
Expand Down

0 comments on commit 1ff9217

Please sign in to comment.