mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
remove return value from Close()
This commit is contained in:
@@ -461,12 +461,9 @@ func (c *Client) StartRecording(address string, medias media.Medias) error {
|
||||
}
|
||||
|
||||
// Close closes all client resources and waits for them to close.
|
||||
func (c *Client) Close() error {
|
||||
func (c *Client) Close() {
|
||||
c.ctxCancel()
|
||||
<-c.done
|
||||
|
||||
// TODO: remove return value in next major version
|
||||
return c.closeError
|
||||
}
|
||||
|
||||
// Wait waits until all client resources are closed.
|
||||
|
Reference in New Issue
Block a user