summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/service.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index ecb91554..1145b210 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -725,7 +725,11 @@ function mt:listen()
local delta = os.clock() - clock
clock = os.clock()
- updateTimer(delta)
+ local suc, err = xpcall(updateTimer, log.error, delta)
+ if not suc then
+ io.stderr:write(err)
+ io.stderr:flush()
+ end
thread.sleep(0.001)
end
end