确保推流器主动断开时,不开启断连续推特性: #1559

This commit is contained in:
xiongziliang
2022-04-16 21:37:07 +08:00
parent ebe4141026
commit 974055fd17
2 changed files with 2 additions and 0 deletions

View File

@@ -223,6 +223,7 @@ void RtmpSession::onCmd_deleteStream(AMFDecoder &dec) {
sendStatus({ "level", "status",
"code", "NetStream.Unpublish.Success",
"description", "Stop publishing." });
_push_src = nullptr;
throw std::runtime_error(StrPrinter << "Stop publishing" << endl);
}