Forgot to include while loop condition

This commit is contained in:
Alessandro 2019-01-27 16:46:57 +01:00 committed by GitHub
parent 1fb6fe747d
commit be9a7b462a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ local function setInterval(func, s, ...)
interval.run = true
interval.stopped = false
interval.pid = spawn(function()
while true do
while interval.run do
sleep(interval.interval)
spawn(function()
interval.func(unpack(interval.args))