Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
644e2a44
Unverified
提交
644e2a44
authored
7月 10, 2023
作者:
Iñaki Baz Castillo
提交者:
GitHub
7月 10, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
worker: Add Transport::Destroying() protected method (#1114)
上级
99403005
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
30 行增加
和
3 行删除
+30
-3
CHANGELOG.md
CHANGELOG.md
+5
-0
Transport.hpp
worker/include/RTC/Transport.hpp
+1
-0
DirectTransport.cpp
worker/src/RTC/DirectTransport.cpp
+4
-0
PipeTransport.cpp
worker/src/RTC/PipeTransport.cpp
+4
-0
PlainTransport.cpp
worker/src/RTC/PlainTransport.cpp
+4
-0
Transport.cpp
worker/src/RTC/Transport.cpp
+7
-3
WebRtcTransport.cpp
worker/src/RTC/WebRtcTransport.cpp
+5
-0
没有找到文件。
CHANGELOG.md
浏览文件 @
644e2a44
# Changelog
### Next
*
`Worker`
: Add
`Transport::Destroying()`
protected method (
[
PR #1114
](
https://github.com/versatica/mediasoup/pull/1114
)
).
### 3.12.5
*
`DataConsumer`
: Fix removed 'bufferedamountlow' notification (
[
PR #1113
](
https://github.com/versatica/mediasoup/pull/1113
)
).
...
...
worker/include/RTC/Transport.hpp
浏览文件 @
644e2a44
...
...
@@ -144,6 +144,7 @@ namespace RTC
protected
:
// Must be called from the subclass.
void
Destroying
();
void
Connected
();
void
Disconnected
();
void
DataReceived
(
size_t
len
)
...
...
worker/src/RTC/DirectTransport.cpp
浏览文件 @
644e2a44
...
...
@@ -28,6 +28,10 @@ namespace RTC
{
MS_TRACE
();
// Tell the Transport parent class that we are about to destroy
// the class instance.
Destroying
();
this
->
shared
->
channelMessageRegistrator
->
UnregisterHandler
(
this
->
id
);
}
...
...
worker/src/RTC/PipeTransport.cpp
浏览文件 @
644e2a44
...
...
@@ -117,6 +117,10 @@ namespace RTC
{
MS_TRACE
();
// Tell the Transport parent class that we are about to destroy
// the class instance.
Destroying
();
this
->
shared
->
channelMessageRegistrator
->
UnregisterHandler
(
this
->
id
);
delete
this
->
udpSocket
;
...
...
worker/src/RTC/PlainTransport.cpp
浏览文件 @
644e2a44
...
...
@@ -206,6 +206,10 @@ namespace RTC
{
MS_TRACE
();
// Tell the Transport parent class that we are about to destroy
// the class instance.
Destroying
();
this
->
shared
->
channelMessageRegistrator
->
UnregisterHandler
(
this
->
id
);
delete
this
->
udpSocket
;
...
...
worker/src/RTC/Transport.cpp
浏览文件 @
644e2a44
...
...
@@ -182,9 +182,6 @@ namespace RTC
{
MS_TRACE
();
// Set the destroying flag.
this
->
destroying
=
true
;
// The destructor must delete and clear everything silently.
// Delete all Producers.
...
...
@@ -1594,6 +1591,13 @@ namespace RTC
}
}
void
Transport
::
Destroying
()
{
MS_TRACE
();
this
->
destroying
=
true
;
}
void
Transport
::
Connected
()
{
MS_TRACE
();
...
...
worker/src/RTC/WebRtcTransport.cpp
浏览文件 @
644e2a44
...
...
@@ -300,6 +300,11 @@ namespace RTC
{
MS_TRACE
();
// We need to tell the Transport parent class that we are about to destroy
// the class instance. This is because child's destructor runs before
// parent's destructor. See comment in Transport::OnSctpAssociationSendData().
Destroying
();
this
->
shared
->
channelMessageRegistrator
->
UnregisterHandler
(
this
->
id
);
// Must delete the DTLS transport first since it will generate a DTLS alert
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论