mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 19:43:01 +00:00
Reset channel observer in resetState (#449)
* Reset channel observer in resetState * Spelling fix
This commit is contained in:
1 parent
1e459e91cc
commit
f209e9319a
2 files changed
+2
-1
No files matched your search
@@ -384,7 +384,7 @@ func (t *PCTransport) preparePC(previousAnswer webrtc.SessionDescription) error
|
||||
t.pc.SetLocalDescription(offer)
|
||||
|
||||
//
|
||||
// Simulcate client side peer connection and set DTLS role from previous answer.
|
||||
// Simulate client side peer connection and set DTLS role from previous answer.
|
||||
// Role needs to be set properly (one side needs to be server and the other side
|
||||
// eeds to be the client) for DTLS connection to form properly. As this is
|
||||
// trying to replicate previous setup, read from previous answer and use that role.
|
||||
|
||||
@@ -242,6 +242,7 @@ func (s *StreamAllocator) SetTrackPriority(downTrack *DownTrack, priority uint8)
|
||||
}
|
||||
|
||||
func (s *StreamAllocator) resetState() {
|
||||
s.channelObserver.Reset()
|
||||
s.resetProbe()
|
||||
|
||||
s.state = StateStable
|
||||
|
||||
Reference in new issue
Block a user