bugfix: 修复rtp服务器单端口tcp模式下访问空指针崩溃的问题

This commit is contained in:
xia-chu
2024-06-12 19:23:26 +08:00
parent c446f6bb98
commit 8159f4e085
2 changed files with 22 additions and 23 deletions

View File

@@ -73,7 +73,7 @@ void RtpSession::onManager() {
}
void RtpSession::setRtpProcess(RtpProcess::Ptr process) {
_emit_detach = true;
_emit_detach = (bool)process;
_process = std::move(process);
}