protocol/rtp: setting Client's op field in constructor

This commit is contained in:
Saxon 2019-04-19 18:22:43 +09:30
parent ccc08bfad1
commit b302eafa68
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func NewClient(addr string, op func([]byte) ([]byte, error)) (*Client, error) {
c := &Client{
done: make(chan struct{}, 10),
ring: ring.NewBuffer(10, 4096, 0),
op: op,
}
a, err := net.ResolveUDPAddr("udp", addr)