mirror of https://bitbucket.org/ausocean/av.git
protocol/rtcp/client.go: using fmt.Errorf rather than errors.New(fmt.Sprintf(...)) in parse()
This commit is contained in:
parent
ea309b295e
commit
f5d38b1bfc
|
@ -231,7 +231,7 @@ func (c *Client) parse(buf []byte) {
|
||||||
c.markReceivedTime()
|
c.markReceivedTime()
|
||||||
t, err := ParseTimestamp(buf)
|
t, err := ParseTimestamp(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.err <- errors.New(fmt.Sprintf("could not get timestamp from sender report, failed with error: %v", err))
|
c.err <- fmt.Errorf("could not get timestamp from sender report, failed with error: %v\n", err)
|
||||||
}
|
}
|
||||||
c.setSenderTs(t)
|
c.setSenderTs(t)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue