mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
remove conn.Close
This commit is contained in:
4
conn.go
4
conn.go
@@ -25,10 +25,6 @@ func NewConn(nconn net.Conn) *Conn {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Conn) Close() error {
|
|
||||||
return c.nconn.Close()
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *Conn) ReadRequest() (*Request, error) {
|
func (c *Conn) ReadRequest() (*Request, error) {
|
||||||
c.nconn.SetReadDeadline(time.Now().Add(_READ_DEADLINE))
|
c.nconn.SetReadDeadline(time.Now().Add(_READ_DEADLINE))
|
||||||
return requestDecode(c.nconn)
|
return requestDecode(c.nconn)
|
||||||
|
Reference in New Issue
Block a user