diff --git a/revid/senders.go b/revid/senders.go index 9bed14f8..1e97aad1 100644 --- a/revid/senders.go +++ b/revid/senders.go @@ -308,8 +308,8 @@ func (s *rtmpSender) release() { func (s *rtmpSender) restart() error { s.conn.Close() - var err error - for n := 0; n < s.retries; n++ { + var err error + for n := 0; n < s.retries; n++ { s.conn, err = rtmp.Dial(s.url, s.timeout, s.log) if err == nil { break