diff --git a/src/runner/script_signal.rs b/src/runner/script_signal.rs index 3dfe8f6..e6f1bbf 100644 --- a/src/runner/script_signal.rs +++ b/src/runner/script_signal.rs @@ -104,8 +104,8 @@ fn wait_thread(lua:&mlua::Lua,this:ScriptSignal)->Result<(),mlua::Error>{ const LUA_WAIT:&str= "local coroutine_yield=coroutine.yield local wait_thread=wait_thread -return function() - wait_thread() +return function(signal) + wait_thread(signal) return coroutine_yield() end";