mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
server: update error message
This commit is contained in:
@@ -228,7 +228,7 @@ type ErrServerSessionTeardown struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrServerSessionTeardown) Error() string {
|
||||
return "teardown"
|
||||
return "destroyed by a connection"
|
||||
}
|
||||
|
||||
// ErrServerSessionLinkedToOtherConn is an error that can be returned by a server.
|
||||
|
@@ -277,7 +277,7 @@ func (ss *ServerSession) run() {
|
||||
|
||||
if _, ok := err.(liberrors.ErrServerSessionTeardown); ok {
|
||||
req.res <- sessionRequestRes{res: res, err: nil}
|
||||
return liberrors.ErrServerSessionTeardown{}
|
||||
return err
|
||||
}
|
||||
|
||||
req.res <- sessionRequestRes{
|
||||
|
Reference in New Issue
Block a user