Fixed BIG bug killing ExpGamingCore.Server/on_tick

This commit is contained in:
Cooldude2606 committed 2019-01-04 00:19:23 +00:00
1 parent 02e13ce7b1
commit 6a17b7ce04
3 files changed
+6 -3

No files matched your search

+4 -1
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