commit
ce7b5d8ee5
@ -373,6 +373,9 @@ func (client *RTSPClient) startStream() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (client *RTSPClient) request(method string, customHeaders map[string]string, uri string, one bool, nores bool) (err error) {
|
func (client *RTSPClient) request(method string, customHeaders map[string]string, uri string, one bool, nores bool) (err error) {
|
||||||
|
if client.conn == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
err = client.conn.SetDeadline(time.Now().Add(client.options.ReadWriteTimeout))
|
err = client.conn.SetDeadline(time.Now().Add(client.options.ReadWriteTimeout))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user