protocol/rtcp/client.go: added comment for Err() regarding usage.

This commit is contained in:
Saxon 2019-05-03 19:58:50 +09:30
parent e00c959a84
commit 7fe5e74123
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ func (c *Client) Stop() {
c.wg.Wait()
}
// Err provides read access to the Client err channel.
// Err provides read access to the Client err channel. This must be checked
// otherwise the client will block if an error encountered.
func (c *Client) Err() <-chan error {
return c.err
}