完善webrtc相关对象生命周期管理逻辑

This commit is contained in:
ziyue
2021-09-15 20:08:18 +08:00
parent 3034f19a66
commit 2b5cad97cf
3 changed files with 13 additions and 17 deletions

View File

@@ -75,6 +75,8 @@ void WebRtcSession::onError(const SockException &err) {
//在udp链接迁移时新的WebRtcSession对象将接管WebRtcTransport对象的生命周期
//本WebRtcSession对象将在超时后自动销毁
WarnP(this) << err.what();
//取消循环引用
_transport = nullptr;
}
void WebRtcSession::onManager() {