diff options
-rw-r--r-- | cactus.lua | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -171,4 +171,15 @@ local function loop() os.sleep(120) end -mainloop() +local function main() + setup() + while true do loop() end +end + +while true do + local ok,err = pcall(main) + if not ok then print(error) end + os.sleep(5) +end +end + |