mirror of
https://github.com/livekit/livekit.git
synced 2026-04-23 11:35:41 +00:00
exit downtrackRTCPWorker after disconnection
This commit is contained in:
@@ -841,6 +841,9 @@ func (p *ParticipantImpl) downTracksRTCPWorker() {
|
||||
for {
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
if p.State() == livekit.ParticipantInfo_DISCONNECTED {
|
||||
return
|
||||
}
|
||||
if p.subscriber.pc.ConnectionState() != webrtc.PeerConnectionStateConnected {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user