From 481c2bdfb0b2af1174354718338dd649f3c154e1 Mon Sep 17 00:00:00 2001 From: Quinton Pike Date: Thu, 28 Mar 2019 11:43:00 -0400 Subject: [PATCH] Do not queue empty items. --- process.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/process.go b/process.go index 0badde9..22da405 100644 --- a/process.go +++ b/process.go @@ -57,7 +57,9 @@ func ( p *Processor ) requestErrandToProcess(){ fmt.Println("Error requesting errand to process:", err) return } - p.ErrandQueue <- &errandRes.Results + if errandRes.Results.ID != "" { + p.ErrandQueue <- &errandRes.Results + } }