Skip to content

Commit

Permalink
fix spurious invokation of app task runner
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsadok committed Aug 28, 2021
1 parent b9ef34a commit d4f3bd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/libfibre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,9 @@ void libfibre_run_tasks(LibFibreCtx* ctx, LibFibreTask* tasks, size_t n_tasks, L
F_LOG_E(ctx->fibre_ctx->logger, "libfibre_run_tasks must not be called from inside the libfibre_run_tasks_callback");
}

ctx->autostart_dispatcher = false;
ctx->handle_tasks(tasks, n_tasks);
ctx->autostart_dispatcher = true;

// Move new tasks to the shadow task queue so they remain valid until the
// next call to `libfibre_run_tasks()`.
Expand Down

0 comments on commit d4f3bd2

Please sign in to comment.