Hi Bart,

Thanks for this good bug report!  I agree that Unqueue should update its 
"count" handler as it goes, and have checked in a fix to that effect.

E



Bart Braem wrote:
> Dear list,
> 
> We have found strange behaviour with the Unqueue element in the following 
> script:
> 
> InfiniteSource(LIMIT 5)
>       -> Print("beforeQueue")
>       -> SimpleQueue
>       -> unqueue :: Unqueue(LIMIT 1)
>       -> Print("afterQueue")
>       -> Script(TYPE PACKET, write unqueue.reset);
> 
> We would expect this to print multiple times, and actually the script only 
> prints once. The issue seems to be that inside the element _worked is added 
> to _count, after _count was reset by the handler call...
> 
> best regards,
> Bart
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to