mirror of
https://github.com/aler9/gortsplib
synced 2025-10-03 06:22:17 +08:00
server: add error to OnSessionClose()
This commit is contained in:
@@ -38,7 +38,7 @@ func (sh *serverHandler) OnSessionOpen(ss *gortsplib.ServerSession) {
|
||||
}
|
||||
|
||||
// called when a session is closed.
|
||||
func (sh *serverHandler) OnSessionClose(ss *gortsplib.ServerSession) {
|
||||
func (sh *serverHandler) OnSessionClose(ss *gortsplib.ServerSession, err error) {
|
||||
log.Printf("session closed")
|
||||
|
||||
sh.mutex.Lock()
|
||||
|
Reference in New Issue
Block a user