perhaps clip size theshold was too small??

This commit is contained in:
Saxon1 2018-05-06 18:50:21 +09:30
parent 1a70c7a630
commit d03e70e8dc
1 changed files with 3 additions and 6 deletions

View File

@ -405,14 +405,11 @@ func (r *revid) outputClips() {
r.Log(Warning, "Send failed trying again!") r.Log(Warning, "Send failed trying again!")
// If the clip size is not bigger than the threshold then we classify // If the clip size is not bigger than the threshold then we classify
// it as junk and we don't try to send it off again. // it as junk and we don't try to send it off again.
if len(clip) >= clipSizeThreshold {
err2 = r.sendClip(clip) err2 = r.sendClip(clip)
if err2 == nil { if err2 == nil {
break break
} }
} else {
break
}
// So that we don't fill up the log, once we reach the maxSendFailedErrorCount // 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 // we will add some delay to slow things down until we have a connection again
time.Sleep(time.Duration(sendFailedDelay) * time.Second) time.Sleep(time.Duration(sendFailedDelay) * time.Second)