error handling for start_bdp_ping

pull/18583/head
yang-g 6 years ago
parent 55f9946d3b
commit 47132c099e
  1. 3
      src/core/ext/transport/chttp2/transport/chttp2_transport.cc

@ -2598,6 +2598,9 @@ static void start_bdp_ping_locked(void* tp, grpc_error* error) {
gpr_log(GPR_INFO, "%s: Start BDP ping err=%s", t->peer_string,
grpc_error_string(error));
}
if (error != GRPC_ERROR_NONE || t->closed_with_error != GRPC_ERROR_NONE) {
return;
}
/* Reset the keepalive ping timer */
if (t->keepalive_state == GRPC_CHTTP2_KEEPALIVE_STATE_WAITING) {
grpc_timer_cancel(&t->keepalive_ping_timer);

Loading…
Cancel
Save