do not set cfstream client to null on shutdown

pull/36415/head
Hannah Shi 12 months ago
parent dc848c3e05
commit f8f609f304
  1. 6
      src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc

@ -249,9 +249,9 @@ void CFStreamEndpointImpl::Shutdown() {
read_event_.SetShutdown(shutdownStatus); read_event_.SetShutdown(shutdownStatus);
write_event_.SetShutdown(shutdownStatus); write_event_.SetShutdown(shutdownStatus);
CFReadStreamSetClient(cf_read_stream_, kCFStreamEventNone, nullptr, nullptr); CFReadStreamSetDispatchQueue(cf_read_stream_, nullptr);
CFWriteStreamSetClient(cf_write_stream_, kCFStreamEventNone, nullptr, CFWriteStreamSetDispatchQueue(cf_write_stream_, nullptr);
nullptr);
CFReadStreamClose(cf_read_stream_); CFReadStreamClose(cf_read_stream_);
CFWriteStreamClose(cf_write_stream_); CFWriteStreamClose(cf_write_stream_);
} }

Loading…
Cancel
Save