Remove unnecessary es

pull/37824/head
Yash Tibrewal 5 months ago
parent 2030231e32
commit 97a7625033
  1. 4
      src/core/ext/transport/chttp2/server/chttp2_server.cc

@ -783,15 +783,11 @@ Chttp2ServerListener::Chttp2ServerListener(
} }
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) { if (passive_listener_ != nullptr) {
passive_listener_->ListenerDestroyed(); passive_listener_->ListenerDestroyed();
} }
if (on_destroy_done_ != nullptr) { if (on_destroy_done_ != nullptr) {
ExecCtx::Run(DEBUG_LOCATION, on_destroy_done_, absl::OkStatus()); ExecCtx::Run(DEBUG_LOCATION, on_destroy_done_, absl::OkStatus());
ExecCtx::Get()->Flush();
} }
} }

Loading…
Cancel
Save