Else, it was logging something like
`candidateError: json: unsupported type: func() interface {}`
This commit is contained in:
Raja Subramanian
2024-04-09 11:19:41 +05:30
committed by GitHub
parent 10c8582a6b
commit 6b0f7403ef
+1 -4
View File
@@ -1336,10 +1336,7 @@ func (t *PCTransport) handleLocalICECandidate(e *event) error {
filtered := false
if c != nil {
if t.preferTCP.Load() && c.Protocol != webrtc.ICEProtocolTCP {
t.params.Logger.Debugw("filtering out local candidate",
"candidate", func() interface{} {
return c.String()
})
t.params.Logger.Debugw("filtering out local candidate", "candidate", c.String())
filtered = true
}
t.connectionDetails.AddLocalCandidate(c, filtered)