event: Fix crash when creating task from closure with extra data

This commit is contained in:
rdb 2022-10-31 23:09:13 +01:00
parent 54e2ddfd1c
commit ae7084504b

View File

@ -52,6 +52,8 @@ add(const std::string &name, Callable callable) {
public:
InlineTask(Callable callable) : _callable(std::move(callable)) {}
ALLOC_DELETED_CHAIN(InlineTask);
private:
virtual DoneStatus do_task() override final {
return _callable(this);