Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Add sleep command
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Dec 12, 2014
1 parent 800fec7 commit 92e34ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/Context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ function Context:Run(name, ...)
end

self.ran[task] = true

-- Sleep before every task just in case
os.queueEvent("sleep")
os.pullEvent()

return task:Run(self, ...)
end

Expand Down

0 comments on commit 92e34ba

Please sign in to comment.