aboutsummaryrefslogtreecommitdiff
path: root/src/lua/embed/boot.lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/embed/boot.lua.h')
-rw-r--r--src/lua/embed/boot.lua.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h
index da1feac..ab241f1 100644
--- a/src/lua/embed/boot.lua.h
+++ b/src/lua/embed/boot.lua.h
@@ -65,6 +65,9 @@ function jin.core.run()
end
safecall(onEvent, e)
end
+ if not running() then
+ break
+ end
safecall(onUpdate, dt)
-- bind to default render buffer
unbind()