This commit is contained in:
Alan Noble 2019-03-03 07:11:35 +00:00
parent 32280cb9d6
commit b1dcb9d6a7
1 changed files with 2 additions and 2 deletions

View File

@ -308,8 +308,8 @@ func (s *rtmpSender) release() {
func (s *rtmpSender) restart() error { func (s *rtmpSender) restart() error {
s.conn.Close() s.conn.Close()
var err error var err error
for n := 0; n < s.retries; n++ { for n := 0; n < s.retries; n++ {
s.conn, err = rtmp.Dial(s.url, s.timeout, s.log) s.conn, err = rtmp.Dial(s.url, s.timeout, s.log)
if err == nil { if err == nil {
break break