Skip to content

Commit

Permalink
fix: do not stop actors upon abort
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 16, 2024
1 parent d0c7a5a commit 52cbf52
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/until-event-received.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,6 @@ const untilEventReceived = <
}

if (abortController.signal.aborted) {
actor.stop();

return;
}

Expand Down
2 changes: 0 additions & 2 deletions src/until-event-sent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ const untilEventSent = <
}

if (abortController.signal.aborted) {
actor.stop();

return;
}

Expand Down
2 changes: 0 additions & 2 deletions src/until-spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ const untilSpawn = async <Logic extends xs.AnyActorLogic>(
}

if (abortController.signal.aborted) {
actor.stop();

return;
}

Expand Down
2 changes: 0 additions & 2 deletions src/until-transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,6 @@ const untilTransition = <Actor extends AnyStateMachineActor>(
}

if (abortController.signal.aborted) {
actor.stop();

return;
}

Expand Down

0 comments on commit 52cbf52

Please sign in to comment.