Merged in rtmp-dial-error-close (pull request #149)

Removed incorrect Close upon Dial error.

Approved-by: kortschak <dan@kortschak.io>
Approved-by: Alan Noble <anoble@gmail.com>
This commit is contained in:
Alan Noble 2019-02-24 23:15:27 +00:00
commit 471cd56c54
1 changed files with 0 additions and 1 deletions

View File

@ -273,7 +273,6 @@ func newRtmpSender(url string, timeout uint, retries int, log func(lvl int8, msg
break break
} }
log(logger.Error, err.Error()) log(logger.Error, err.Error())
conn.Close()
if n < retries-1 { if n < retries-1 {
log(logger.Info, pkg+"retry rtmp connection") log(logger.Info, pkg+"retry rtmp connection")
} }