mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
client: allow to call client.Close() always
This commit is contained in:
@@ -6,6 +6,14 @@ import (
|
||||
"github.com/aler9/gortsplib/pkg/base"
|
||||
)
|
||||
|
||||
// ErrClientTerminated is an error that can be returned by a client.
|
||||
type ErrClientTerminated struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrClientTerminated) Error() string {
|
||||
return "terminated"
|
||||
}
|
||||
|
||||
// ErrClientWrongState is an error that can be returned by a client.
|
||||
type ErrClientWrongState struct {
|
||||
AllowedList []fmt.Stringer
|
||||
|
Reference in New Issue
Block a user