Skip to content

Commit

Permalink
agents: don't send exit if grpc agent unconfigured
Browse files Browse the repository at this point in the history
  • Loading branch information
santigimeno committed Jan 9, 2025
1 parent c3d7281 commit f12e3e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agents/grpc/src/grpc_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,9 @@ void GrpcAgent::do_start() {
}

void GrpcAgent::do_stop() {
if (!unauthorized_) {
// Don't try to send the exit event when grpc connection wasn't authorized or
// the agent wasn't fully configured.
if (!unauthorized_ && nsolid_service_stub_) {
send_exit();
}

Expand Down

0 comments on commit f12e3e5

Please sign in to comment.