Skip to content

Commit

Permalink
Move assertion up a few lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinhora committed Sep 26, 2020
1 parent 538f088 commit 5dd9d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libponyrt/actor/actor.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ static void send_unblock(pony_actor_t* actor)
static void send_block(pony_ctx_t* ctx, pony_actor_t* actor)
{
// We're blocked, send block message.
pony_assert(ctx->current == actor);
set_flag(actor, FLAG_BLOCKED_SENT);
set_flag(actor, FLAG_CD_CONTACTED);
pony_assert(ctx->current == actor);
ponyint_cycle_block(actor, &actor->gc);

// Trigger garbage collection. GC will get run next time `try_gc` is called
Expand Down

0 comments on commit 5dd9d3f

Please sign in to comment.