mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix error handling in events and runnables
This commit is contained in:
parent
3304bf27a6
commit
03a3062940
2 changed files with 10 additions and 5 deletions
|
|
@ -172,7 +172,10 @@ local __post_runnables = {}
|
|||
function __process_post_runnables()
|
||||
if #__post_runnables then
|
||||
for _, func in ipairs(__post_runnables) do
|
||||
func()
|
||||
local status, result = pcall(func)
|
||||
if not status then
|
||||
debug.log("error in post_runnable: "..result)
|
||||
end
|
||||
end
|
||||
__post_runnables = {}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue