From 8f5edbe954fd62de1ca433f5c60773ae28a03ccc Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 20 Jan 2024 13:09:38 +0100 Subject: [PATCH] Fix it some more --- lib/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/traits.rs b/lib/traits.rs index b003e5e..3e2a1a5 100644 --- a/lib/traits.rs +++ b/lib/traits.rs @@ -70,7 +70,7 @@ pub trait LuaExecutorExt<'lua> { )?; let rt = Runtime::new(&lua)?; - rt.push_main(lua.load("spawnBackgroundTask()"), ()); + rt.push_thread(lua.load("spawnBackgroundTask()"), ()); rt.run_blocking(); Ok(())