-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: close of closed channel engine/peer.go:1 77 +0xb1 #34
Comments
2024/02/25 03:53:56 HandlePeer(rid:uid:092ae668-493f-4bf7-800a-eca1e365a31f) OnTrack(111, 702176603) |
2024/02/25 03:53:56 HandlePeer(rid:uid:092ae668-493f-4bf7-800a-eca1e365a31f) OnICEConnectionStateChange(connected) OnTrack is called when Peer is closing |
peer.pc.OnTrack(func(rt *webrtc.TrackRemote, receiver *webrtc.RTPReceiver) {
if peer.cid == peerTrackClosedId {
logger.Printf("HandlePeer(%s) OnTrack(%d, %d) closed\n", peer.id(), rt.PayloadType(), rt.SSRC())
return
} an adhoc fix |
The current design of OnTrack require this function can only be called once |
Thank you. Can you submit a PR for this fix? |
Above adhoc fix is not work, currently I just add a recover in copyTrack. If I found a good solution later, I will creat a PR. |
Fixed ce7ec29 |
My branch is 2 years old and merged fix: #33
Not sure if the panic is caused by the fix or if the latest code has fixed this. I will update the info here if I find the root cause.
The text was updated successfully, but these errors were encountered: