Skip to content

Commit

Permalink
do not set cfstream client to null on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahShiSFB committed Apr 20, 2024
1 parent dc848c3 commit f8f609f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ void CFStreamEndpointImpl::Shutdown() {
read_event_.SetShutdown(shutdownStatus);
write_event_.SetShutdown(shutdownStatus);

CFReadStreamSetClient(cf_read_stream_, kCFStreamEventNone, nullptr, nullptr);
CFWriteStreamSetClient(cf_write_stream_, kCFStreamEventNone, nullptr,
nullptr);
CFReadStreamSetDispatchQueue(cf_read_stream_, nullptr);
CFWriteStreamSetDispatchQueue(cf_write_stream_, nullptr);

CFReadStreamClose(cf_read_stream_);
CFWriteStreamClose(cf_write_stream_);
}
Expand Down

0 comments on commit f8f609f

Please sign in to comment.