Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
davidliu
2023-11-20 13:03:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-11-20 13:03:22 +0900
Commit
3d337243e0d116aaa1730278f90ae659c111ad00
3d337243
1 parent
b1ed7978
Undo peer connection dispose change (#323)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
9 行删除
livekit-android-sdk/src/main/java/io/livekit/android/room/PeerConnectionTransport.kt
livekit-android-sdk/src/main/java/io/livekit/android/room/PeerConnectionTransport.kt
查看文件 @
3d33724
...
...
@@ -36,10 +36,7 @@ import io.livekit.android.webrtc.getRtps
import io.livekit.android.webrtc.isConnected
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.sync.Mutex
import org.webrtc.*
...
...
@@ -268,12 +265,7 @@ constructor(
isClosed.set(true)
peerConnection.close()
// Really ugly stop gap measure to avoid race conditions
// TODO: Properly lock any PeerConnection resources to prevent usage.
GlobalScope.launch {
delay(10L * 1000)
peerConnection.dispose()
}
// TODO: properly dispose of peer connection
}
}
...
...
请
注册
或
登录
后发表评论