remove return value from Close()

This commit is contained in:
aler9
2023-08-14 11:07:52 +02:00
parent e26ccf0858
commit 1a3e6ad092
6 changed files with 5 additions and 23 deletions

View File

@@ -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.