Broken scheduler as of build, #2782
LadyCailinBot opened this issue ยท 1 comments
CMDHELPER-2982 - Reported by cartman-2000
This update designed to fix the out of order queue bug here CMDHELPER-2965, but it also screwed up the scheduler so that only one script task can run at a time.
For example. if you ran a set_interval it would block all other queues, timeouts, and intervals in the scripts from running. These are the other functions that I've tried with using an interval in my script, there may be more things that it blocks than that.
You can see it happen by putting code like this in a fresh setup's main.ms file. You are supposed to see it alternate between the two, but only the first interval will be run with this build.
set_interval(5000, 2500, closure(){
console('Goodbye world.')
})
set_interval(5000, closure(){
console('Hello world.')
})
The bukkit version that I'm running on my server is the last released build of CB for mc 1.7.10, build 3116. If I downgrade the version of CH to a build prior to that then the tasks work correctly on the server, other than the order bug.