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