diff --git a/src/Rtp/RtpSession.cpp b/src/Rtp/RtpSession.cpp index 40db50f3..006b1c82 100644 --- a/src/Rtp/RtpSession.cpp +++ b/src/Rtp/RtpSession.cpp @@ -60,6 +60,7 @@ void RtpSession::onError(const SockException &err) { WarnP(this) << _stream_id << " " << err; if (_process) { RtpSelector::Instance().delProcess(_stream_id, _process.get()); + _process = nullptr; } } @@ -272,4 +273,4 @@ const char *RtpSession::searchByPsHeaderFlag(const char *data, size_t len) { } }//namespace mediakit -#endif//defined(ENABLE_RTPPROXY) \ No newline at end of file +#endif//defined(ENABLE_RTPPROXY)