mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-19 23:02:21 +08:00
完善webrtc相关对象生命周期管理逻辑
This commit is contained in:
@@ -75,6 +75,8 @@ void WebRtcSession::onError(const SockException &err) {
|
||||
//在udp链接迁移时,新的WebRtcSession对象将接管WebRtcTransport对象的生命周期
|
||||
//本WebRtcSession对象将在超时后自动销毁
|
||||
WarnP(this) << err.what();
|
||||
//取消循环引用
|
||||
_transport = nullptr;
|
||||
}
|
||||
|
||||
void WebRtcSession::onManager() {
|
||||
|
||||
Reference in New Issue
Block a user