diff --git a/source/common/network/connection_impl.cc b/source/common/network/connection_impl.cc index 3058420018..1c82507119 100644 --- a/source/common/network/connection_impl.cc +++ b/source/common/network/connection_impl.cc @@ -293,10 +293,6 @@ void ConnectionImpl::enableHalfClose(bool enabled) { void ConnectionImpl::readDisable(bool disable) { ASSERT(state() == State::Open); ASSERT(file_event_ != nullptr); - if (state() != State::Open || file_event_ == nullptr) { - // If readDisable is called on a closed connection in error, do not crash. - return; - } ENVOY_CONN_LOG(trace, "readDisable: enabled={} disable={} state={}", *this, read_enabled_, disable, static_cast(state()));