Skip to content

Commit d19c2c1

Browse files
committed
Check our flags before checking flags of 'to' actor
1 parent 3c6535d commit d19c2c1

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
@@ -198,9 +198,8 @@ static void maybe_mark_should_mute(pony_ctx_t* ctx, pony_actor_t* to)
198198
// 2. the sender isn't overloaded or under pressure
199199
// AND
200200
// 3. we are sending to another actor (as compared to sending to self)
201-
if(ctx->current != to && triggers_muting(to) &&
202-
!has_sync_flag_any(ctx->current, SYNC_FLAG_OVERLOADED |
203-
SYNC_FLAG_UNDER_PRESSURE))
201+
if(ctx->current != to && !has_sync_flag_any(ctx->current,
202+
SYNC_FLAG_OVERLOADED | SYNC_FLAG_UNDER_PRESSURE) && triggers_muting(to))
204203
{
205204
ctx->should_mute_actor = true;
206205

0 commit comments

Comments
 (0)