diff --git a/src/Rtmp/RtmpSession.cpp b/src/Rtmp/RtmpSession.cpp index 36f8e84b..81a71c11 100644 --- a/src/Rtmp/RtmpSession.cpp +++ b/src/Rtmp/RtmpSession.cpp @@ -222,7 +222,7 @@ void RtmpSession::onCmd_deleteStream(AMFDecoder &dec) { sendStatus({ "level", "status", "code", "NetStream.Unpublish.Success", "description", "Stop publishing." }); - _push_src = nullptr; + //_push_src = nullptr; throw std::runtime_error(StrPrinter << "Stop publishing" << endl); } diff --git a/src/Rtsp/RtspSession.cpp b/src/Rtsp/RtspSession.cpp index 01adbd5d..ce66a3f2 100644 --- a/src/Rtsp/RtspSession.cpp +++ b/src/Rtsp/RtspSession.cpp @@ -868,7 +868,7 @@ void RtspSession::handleReq_Pause(const Parser &parser) { void RtspSession::handleReq_Teardown(const Parser &parser) { sendRtspResponse("200 OK"); - _push_src = nullptr; + //_push_src = nullptr; throw SockException(Err_shutdown,"recv teardown request"); }