CommandHelper

CommandHelper

46.5k Downloads

queue_clear() not canceling running delay

LadyCailinBot opened this issue ยท 3 comments

commented

CMDHELPER-2615 - Reported by Smashbox

It's stated in the description for queue_clear() that it clears out all tasks that are on the queue. This works as intended, however it should also cancel the running delay.

Here is an example of a bind I made:
http://paste.thezomg.com/8651/99881136/

It works as intended, as it does clear the task, however for the rest of the queue timer it will execute the functions defined instead of clearing the timer aswell. So in this instance it's spamming "Interrupted" on every movement for the remaining duration of the running delay.

commented

Comment by Smashbox

soo...

commented

Comment by LadyCailin

As discussed in IRC, your task is better suited for a interval, not using queues. Closing as won't fix.

commented

Comment by Smashbox

I never discussed anything in IRC, but thank you for suggesting using an interval rather than queues. :)