tick icon indicating copy to clipboard operation
tick copied to clipboard

Using "after" function makes "stop" function fail

Open lmfff opened this issue 3 years ago • 1 comments

Hi! Not sure you're still maintaining this repo but I'm using it and found this issue. This code:

t = tick.delay(function() print("cat") end, 1)
  :after(function() print("dog") end, 1)
t:stop()

seems to cause t:stop() to fail and t to be executed anyways.

Thanks!

lmfff avatar May 09 '22 22:05 lmfff

This syntax solves the issue

t = tick.delay(function() print("cat") end, 1)
t:after(function() print("dog") end, 1)
t:stop()

lmfff avatar May 10 '22 09:05 lmfff