mirror of https://bitbucket.org/ausocean/av.git
perhaps clip size theshold was too small??
This commit is contained in:
parent
1a70c7a630
commit
d03e70e8dc
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue