Skip to content

Commit

Permalink
[chttp2] don't access endpoint in transport ops if it's already been …
Browse files Browse the repository at this point in the history
…destroyed
  • Loading branch information
HannahShiSFB committed Jan 16, 2025
1 parent cc32099 commit f29721d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/core/ext/transport/chttp2/transport/chttp2_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1938,11 +1938,17 @@ static void perform_transport_op_locked(void* stream_op,
}

if (op->bind_pollset) {
grpc_endpoint_add_to_pollset(t->ep, op->bind_pollset);
if (t->ep != nullptr)
{
grpc_endpoint_add_to_pollset(t->ep, op->bind_pollset);
}
}

if (op->bind_pollset_set) {
grpc_endpoint_add_to_pollset_set(t->ep, op->bind_pollset_set);
if (t->ep != nullptr)
{
grpc_endpoint_add_to_pollset_set(t->ep, op->bind_pollset_set);
}
}

if (op->send_ping.on_initiate != nullptr || op->send_ping.on_ack != nullptr) {
Expand Down

0 comments on commit f29721d

Please sign in to comment.