From f41d02e7051b096c94b83ec6e77e70b93f0fce78 Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Thu, 19 Apr 2018 08:07:57 +0000 Subject: [PATCH] still fixing stuff --- revid/Revid.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/revid/Revid.go b/revid/Revid.go index 74333226..8445eadf 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -301,7 +301,8 @@ func (r *revid) packClips() { for { // Get some memory from the ring buffer for out clip var clip []byte - if clip, err := r.ringBuffer.Get(); err != nil { + var err error + if clip, err = r.ringBuffer.Get(); err != nil { r.Log(Error, err.Error()) r.Log(Warning, "Clearing output chan!") r.flushData()