From 6fa0b31455702d00d55aa2df11630d69d32f7026 Mon Sep 17 00:00:00 2001 From: Max Cahill <1bardesign@gmail.com> Date: Thu, 9 Nov 2023 16:55:08 +1100 Subject: [PATCH] fixed crash running in a thread in love without explicitly requiring love.system (unlikely as you rarely need it) --- async.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async.lua b/async.lua index 93feec7..21b6eab 100644 --- a/async.lua +++ b/async.lua @@ -30,7 +30,7 @@ function async:new() end local capture_callstacks -if love and love.system.getOS() == 'Web' then +if love and love.system and love.system.getOS() == 'Web' then --do no extra wrapping under lovejs because using xpcall -- causes a yield across a c call boundary capture_callstacks = function(f)