fix: reuse stream id (#11)

This commit is contained in:
Han Gyoung-Su
2024-09-13 08:30:10 +09:00
committed by GitHub
parent c3255d6a20
commit c2301694db
+1
View File
@@ -353,6 +353,7 @@ func (r *WHIP) whepHandler(c echo.Context) error {
fmt.Printf("ICE Connection State has changed: %s\n", connectionState.String())
if connectionState == webrtc.ICEConnectionStateFailed {
delete(r.tracks, streamKey)
_ = peerConnection.Close()
}
})