diff --git a/src/main.rs b/src/main.rs index 30f41bf..3a07080 100644 --- a/src/main.rs +++ b/src/main.rs @@ -230,7 +230,7 @@ impl UserData for MyLuaFunctions { methods.add_async_method("run", |_lua, _this, command: String| async move { debug!("run function called {}", command.clone()); - let _handle = run(command); + let _handle = run(command).await; Ok(()) });