mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +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 {
|
if conn == publisher {
|
||||||
publisher = nil
|
publisher = nil
|
||||||
sdp = nil
|
sdp = nil
|
||||||
|
} else {
|
||||||
|
delete(readers, conn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -143,6 +143,8 @@ func handleConn(conn *gortsplib.ServerConn) {
|
|||||||
if conn == publisher {
|
if conn == publisher {
|
||||||
publisher = nil
|
publisher = nil
|
||||||
sdp = nil
|
sdp = nil
|
||||||
|
} else {
|
||||||
|
delete(readers, conn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -143,6 +143,8 @@ func handleConn(conn *gortsplib.ServerConn) {
|
|||||||
if conn == publisher {
|
if conn == publisher {
|
||||||
publisher = nil
|
publisher = nil
|
||||||
sdp = nil
|
sdp = nil
|
||||||
|
} else {
|
||||||
|
delete(readers, conn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -287,6 +287,8 @@ func (ts *testServ) handleConn(conn *ServerConn) {
|
|||||||
if conn == ts.publisher {
|
if conn == ts.publisher {
|
||||||
ts.publisher = nil
|
ts.publisher = nil
|
||||||
ts.sdp = nil
|
ts.sdp = nil
|
||||||
|
} else {
|
||||||
|
delete(ts.readers, conn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user