diff --git a/src/lib/utils/task.rs b/src/lib/utils/task.rs index 5275a59..125b5c0 100644 --- a/src/lib/utils/task.rs +++ b/src/lib/utils/task.rs @@ -1,3 +1,4 @@ +use std::fmt::Debug; use std::sync::Weak; use mlua::prelude::*; @@ -43,6 +44,7 @@ pub async fn run_registered_task( sender .send(match to_run.await { Ok(_) => LuneMessage::Finished, + Err(LuaError::CoroutineInactive) => LuneMessage::Finished, // Task was canceled Err(e) => LuneMessage::LuaError(e), }) .await