mirror of https://bitbucket.org/ausocean/av.git
revid: restructure rtmpSender's Close method
This commit is contained in:
parent
9a52f19e3d
commit
eb866ada5e
|
@ -316,11 +316,11 @@ func (s *rtmpSender) restart() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *rtmpSender) Close() error {
|
func (s *rtmpSender) Close() error {
|
||||||
if s.conn != nil {
|
if s.conn == nil {
|
||||||
return s.conn.Close()
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
return s.conn.Close()
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Write restart func for rtpSender
|
// TODO: Write restart func for rtpSender
|
||||||
// rtpSender implements loadSender for a native udp destination with rtp packetization.
|
// rtpSender implements loadSender for a native udp destination with rtp packetization.
|
||||||
|
|
Loading…
Reference in New Issue