Skip to content

Commit 4e88df6

Browse files
committed
Check our flags before checking flags of 'to' actor
1 parent ba8d519 commit 4e88df6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libponyrt/actor/actor.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ static void maybe_mark_should_mute(pony_ctx_t* ctx, pony_actor_t* to)
157157
// 2. the sender isn't overloaded or under pressure
158158
// AND
159159
// 3. we are sending to another actor (as compared to sending to self)
160-
if(ctx->current != to && triggers_muting(to) &&
161-
!has_sync_flag_any(ctx->current, SYNC_FLAG_OVERLOADED |
162-
SYNC_FLAG_UNDER_PRESSURE))
160+
if(ctx->current != to && !has_sync_flag_any(ctx->current,
161+
SYNC_FLAG_OVERLOADED | SYNC_FLAG_UNDER_PRESSURE) && triggers_muting(to))
163162
{
164163
ctx->should_mute_actor = true;
165164

0 commit comments

Comments
 (0)