Fixed BIG bug killing ExpGamingCore.Server/on_tick

This commit is contained in:
Cooldude2606
2019-01-04 00:19:23 +00:00
parent 02e13ce7b1
commit 6a17b7ce04
3 changed files with 6 additions and 3 deletions

View File

@@ -451,7 +451,10 @@ function Server._thread:error(err)
if is_type(self._error,'function') then
Manager.sandbox(self._error,self._env,self,err)
_return = true
else error(err) end
else
self:close() -- no matter what happens next this thread will be closed
error('Thread Error (no handler): '..err)
end
return _return
end