[Chttp2Server] Remove unnecessary ExecCtx Flush (#37824)

This seems to be a vestige from around 8 years ago. The code has changed a lot since then, and this makes no sense anymore.

(Making this change separately to be safe.)

Closes #37824

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37824 from yashykt:RemoveUnnecessaryExecCtxStuff 97a7625033
PiperOrigin-RevId: 681184980
pull/37683/head
Yash Tibrewal 4 months ago committed by Copybara-Service
parent 9a12ec91e1
commit b44de399c1
  1. 4
      src/core/ext/transport/chttp2/server/chttp2_server.cc

@ -783,15 +783,11 @@ Chttp2ServerListener::Chttp2ServerListener(
}
Chttp2ServerListener::~Chttp2ServerListener() {
// Flush queued work before destroying handshaker factory, since that
// may do a synchronous unref.
ExecCtx::Get()->Flush();
if (passive_listener_ != nullptr) {
passive_listener_->ListenerDestroyed();
}
if (on_destroy_done_ != nullptr) {
ExecCtx::Run(DEBUG_LOCATION, on_destroy_done_, absl::OkStatus());
ExecCtx::Get()->Flush();
}
}

Loading…
Cancel
Save