@@ -17,10 +17,10 @@ func (i *Clear) Clean(queue chan interface{}) {
for {
if len(queue) == 0 {
- time.Sleep(1 * time.Millisecond) // set a little gap between Clean() and clear.Working() off
i.set(false)
break
}
+ time.Sleep(1 * time.Millisecond) // set a little gap between every loop and between Clean() and clear.Working() off