mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
remove ConnClient.CloseUDPListeners
This commit is contained in:
@@ -79,13 +79,13 @@ func TestDialReadUDP(t *testing.T) {
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
loopDone := make(chan struct{})
|
||||
defer func() { <-loopDone }()
|
||||
|
||||
conn, err := DialRead("rtsp://localhost:8554/teststream", StreamProtocolUDP)
|
||||
require.NoError(t, err)
|
||||
defer conn.Close()
|
||||
|
||||
loopDone := make(chan struct{})
|
||||
defer func() { <-loopDone }()
|
||||
|
||||
go func() {
|
||||
defer close(loopDone)
|
||||
conn.LoopUDP()
|
||||
@@ -93,8 +93,6 @@ func TestDialReadUDP(t *testing.T) {
|
||||
|
||||
_, err = conn.ReadFrameUDP(0, StreamTypeRtp)
|
||||
require.NoError(t, err)
|
||||
|
||||
conn.CloseUDPListeners()
|
||||
}
|
||||
|
||||
func TestDialReadTCP(t *testing.T) {
|
||||
@@ -156,13 +154,13 @@ func TestDialReadRedirect(t *testing.T) {
|
||||
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
loopDone := make(chan struct{})
|
||||
defer func() { <-loopDone }()
|
||||
|
||||
conn, err := DialRead("rtsp://localhost:8554/path1", StreamProtocolUDP)
|
||||
require.NoError(t, err)
|
||||
defer conn.Close()
|
||||
|
||||
loopDone := make(chan struct{})
|
||||
defer func() { <-loopDone }()
|
||||
|
||||
go func() {
|
||||
defer close(loopDone)
|
||||
conn.LoopUDP()
|
||||
@@ -170,8 +168,6 @@ func TestDialReadRedirect(t *testing.T) {
|
||||
|
||||
_, err = conn.ReadFrameUDP(0, StreamTypeRtp)
|
||||
require.NoError(t, err)
|
||||
|
||||
conn.CloseUDPListeners()
|
||||
}
|
||||
|
||||
func TestDialPublishUDP(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user