CommandHelper

CommandHelper

46.5k Downloads

queue_clear() not canceling running delay

LadyCailin opened this issue ยท 3 comments

commented

CMDHELPER-2615 - Reported by Smashbox on 2013-04-04 18:24:54 UTC

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 on 2013-04-12 19:38:36 UTC

soo...

commented

Comment by LadyCailin on 2013-05-17 19:10:30 UTC

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

commented

Comment by Smashbox on 2013-05-20 20:47:11 UTC

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