From 5bb2bcc5f63a3d505cdaebdc0cc54701078e750c Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Sat, 5 May 2018 14:26:01 +0930 Subject: [PATCH] trying to slow things down a little --- revid/Revid.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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()