Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtp.Session.WriteData returns 0 regardless of whether the write was successful #9

Open
tonickkozlov opened this issue Aug 12, 2019 · 1 comment

Comments

@tonickkozlov
Copy link
Contributor

Hello and thanks for a very useful library.

I've noticed that func (rs *Session) WriteData(rp *DataPacket) (n int, err error)
always returns n=0 regardless of the outcome of writing into transport.

Looks like the named return value n is never being assigned.

https://github.com/wernerd/GoRTP/blob/master/src/net/rtp/session.go#L716

Is this expected behaviour?

Thanks!

@wernerd
Copy link
Owner

wernerd commented Aug 12, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants