diff --git a/src/libponyrt/actor/actor.c b/src/libponyrt/actor/actor.c index a04162bb0a..05e3f785a5 100644 --- a/src/libponyrt/actor/actor.c +++ b/src/libponyrt/actor/actor.c @@ -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