mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 13:30:38 +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
|
.await
|
||||||
})
|
})
|
||||||
.detach();
|
.detach();
|
||||||
sender
|
|
||||||
.send(LuneMessage::Finished)
|
|
||||||
.await
|
|
||||||
.map_err(LuaError::external)?;
|
|
||||||
Ok(thread_to_return)
|
Ok(thread_to_return)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,10 +133,6 @@ async fn task_delay<'a>(
|
||||||
.await
|
.await
|
||||||
})
|
})
|
||||||
.detach();
|
.detach();
|
||||||
sender
|
|
||||||
.send(LuneMessage::Finished)
|
|
||||||
.await
|
|
||||||
.map_err(LuaError::external)?;
|
|
||||||
Ok(thread_to_return)
|
Ok(thread_to_return)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,10 +179,6 @@ async fn task_spawn<'a>(task_lua: &'a Lua, tof: LuaValue<'a>) -> LuaResult<LuaTh
|
||||||
.await
|
.await
|
||||||
})
|
})
|
||||||
.detach();
|
.detach();
|
||||||
sender
|
|
||||||
.send(LuneMessage::Finished)
|
|
||||||
.await
|
|
||||||
.map_err(LuaError::external)?;
|
|
||||||
Ok(thread_to_return)
|
Ok(thread_to_return)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue