mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-10 02:31:48 +00:00
fixed crash running in a thread in love without explicitly requiring love.system (unlikely as you rarely need it)
This commit is contained in:
parent
f091c89893
commit
6fa0b31455
@ -30,7 +30,7 @@ function async:new()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local capture_callstacks
|
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
|
--do no extra wrapping under lovejs because using xpcall
|
||||||
-- causes a yield across a c call boundary
|
-- causes a yield across a c call boundary
|
||||||
capture_callstacks = function(f)
|
capture_callstacks = function(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user