From 56bce25519bb3624150f1dbc18612acfce0c7b19 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Tue, 18 Feb 2020 12:37:45 -0500 Subject: [PATCH] Small changes to test.lua --- test.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.lua b/test.lua index 6f93f5f..4a6d5e6 100644 --- a/test.lua +++ b/test.lua @@ -58,14 +58,14 @@ function multi:newService(func) -- Priority managed threads function c.getUpTime() return time:Get() end - function c.setPriority(pri) + function c:setPriority(pri) + if type(self)=="number" then pri = self end p = pri end return c end serv = multi:newService(function(self,data) - thread.sleep(1) - error("sorry i crashed :'(") + print(self:getUpTime()) end) serv.OnError(function(...) print(...)