mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
fix readers removal in examples (#26)
This commit is contained in:
@@ -144,6 +144,8 @@ func handleConn(conn *gortsplib.ServerConn) {
|
||||
if conn == publisher {
|
||||
publisher = nil
|
||||
sdp = nil
|
||||
} else {
|
||||
delete(readers, conn)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -143,6 +143,8 @@ func handleConn(conn *gortsplib.ServerConn) {
|
||||
if conn == publisher {
|
||||
publisher = nil
|
||||
sdp = nil
|
||||
} else {
|
||||
delete(readers, conn)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -143,6 +143,8 @@ func handleConn(conn *gortsplib.ServerConn) {
|
||||
if conn == publisher {
|
||||
publisher = nil
|
||||
sdp = nil
|
||||
} else {
|
||||
delete(readers, conn)
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -287,6 +287,8 @@ func (ts *testServ) handleConn(conn *ServerConn) {
|
||||
if conn == ts.publisher {
|
||||
ts.publisher = nil
|
||||
ts.sdp = nil
|
||||
} else {
|
||||
delete(ts.readers, conn)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user