marion %!s(int64=4) %!d(string=hai) anos
pai
achega
f16b8090d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/queue/queue_clear.go

+ 1 - 1
utils/queue/queue_clear.go

@@ -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
 	}
 }