mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Fix task lib sending too many messages
This commit is contained in:
parent
fd8a41759c
commit
547d8f25f3
1 changed files with 0 additions and 12 deletions
|
@ -84,10 +84,6 @@ async fn task_defer<'a>(task_lua: &'a Lua, tof: LuaValue<'a>) -> LuaResult<LuaTh
|
|||
.await
|
||||
})
|
||||
.detach();
|
||||
sender
|
||||
.send(LuneMessage::Finished)
|
||||
.await
|
||||
.map_err(LuaError::external)?;
|
||||
Ok(thread_to_return)
|
||||
}
|
||||
|
||||
|
@ -137,10 +133,6 @@ async fn task_delay<'a>(
|
|||
.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<LuaTh
|
|||
.await
|
||||
})
|
||||
.detach();
|
||||
sender
|
||||
.send(LuneMessage::Finished)
|
||||
.await
|
||||
.map_err(LuaError::external)?;
|
||||
Ok(thread_to_return)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue