Browse Source

close UDP connection when RTSPClient Stop

pull/154/head
milkywayrivers@gmail.com 6 years ago
parent
commit
6e05b2202d
  1. 4
      rtsp/rtsp-client.go

4
rtsp/rtsp-client.go

@ -501,6 +501,10 @@ func (client *RTSPClient) Stop() {
client.Conn.Close() client.Conn.Close()
client.Conn = nil client.Conn = nil
} }
if client.UDPServer != nil{
client.UDPServer.Stop()
client.UDPServer = nil
}
} }
func (client *RTSPClient) RequestWithPath(method string, path string, headers map[string]string, needResp bool) (resp *Response, err error) { func (client *RTSPClient) RequestWithPath(method string, path string, headers map[string]string, needResp bool) (resp *Response, err error) {

Loading…
Cancel
Save