Removed incorrect Close upon Dial error.

This commit is contained in:
Alan Noble 2019-02-22 20:45:13 +00:00
parent 9b57306aed
commit 01d85af133
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")
} }