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

@@ -56,7 +56,7 @@ func (st *ServerStream) initializeServerDependentPart() {
}
// Close closes a ServerStream.
func (st *ServerStream) Close() error {
func (st *ServerStream) Close() {
st.mutex.Lock()
st.closed = true
st.mutex.Unlock()
@@ -68,9 +68,6 @@ func (st *ServerStream) Close() error {
for _, sm := range st.streamMedias {
sm.close()
}
// TODO: remove return value in next major version
return nil
}
// Medias returns the medias of the stream.