Skip to content

Commit bf6c7ab

Browse files
committed
Don't move the task_ptr in run_continuation
Fixes #51
1 parent 756893f commit bf6c7ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/async++/task_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ struct LIBASYNC_CACHELINE_ALIGN task_base: public ref_count_base<task_base, task
9898
void run_continuation(Sched& sched, task_ptr&& cont)
9999
{
100100
LIBASYNC_TRY {
101-
detail::schedule_task(sched, std::move(cont));
101+
detail::schedule_task(sched, cont);
102102
} LIBASYNC_CATCH(...) {
103103
// This is suboptimal, but better than letting the exception leak
104104
cont->vtable->cancel(cont.get(), std::current_exception());

0 commit comments

Comments
 (0)