mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: test invalid session
This commit is contained in:
@@ -199,3 +199,11 @@ type ErrServerSessionLinkedToOtherConn struct{}
|
||||
func (e ErrServerSessionLinkedToOtherConn) Error() string {
|
||||
return "session is linked to another connection"
|
||||
}
|
||||
|
||||
// ErrServerInvalidSession is an error that can be returned by a server.
|
||||
type ErrServerInvalidSession struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrServerInvalidSession) Error() string {
|
||||
return "invalid session"
|
||||
}
|
||||
|
Reference in New Issue
Block a user