diff --git a/revid/Revid.go b/revid/Revid.go index e0d240fe..dc0060c5 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -392,11 +392,9 @@ func (r *revid) outputClips() { } // So that we don't fill up the log, once we reach the maxSendFailedErrorCount // we will add some delay to slow things down until we have a connection again - if errorCount > maxSendFailedErrorCount { - time.Sleep(time.Duration(sendFailedDelay) * time.Second) - } + time.Sleep(time.Duration(sendFailedDelay) * time.Second) r.Log(Error, err2.Error()) - if r.config.Output == NativeRtmp && errorCount > 10 { + if r.config.Output == NativeRtmp { r.rtmpInst.EndSession() r.rtmpInst = rtmp.NewRTMPSession(r.config.RtmpUrl, rtmpConnectionTimout) err = r.rtmpInst.StartSession()