From 547d8f25f30e3b0435c40514f2a40827117b7f37 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Mon, 23 Jan 2023 13:54:34 -0500 Subject: [PATCH] Fix task lib sending too many messages --- src/lib/globals/task.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib/globals/task.rs b/src/lib/globals/task.rs index 2e36f02..c0c7d93 100644 --- a/src/lib/globals/task.rs +++ b/src/lib/globals/task.rs @@ -84,10 +84,6 @@ async fn task_defer<'a>(task_lua: &'a Lua, tof: LuaValue<'a>) -> LuaResult( .await }) .detach(); - sender - .send(LuneMessage::Finished) - .await - .map_err(LuaError::external)?; Ok(thread_to_return) } @@ -187,10 +179,6 @@ async fn task_spawn<'a>(task_lua: &'a Lua, tof: LuaValue<'a>) -> LuaResult