Skip to content

Handle already aborted controllers before re-aborting #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ActuallyConnor
Copy link

Previously, the code attempted to abort controllers without checking their state, potentially causing issues. This change ensures that controllers are only aborted if they are not already in an aborted state, improving robustness and preventing unnecessary operations.

About the changes

Closes #

Important files

Discussion points

Previously, the code attempted to abort controllers without checking their state, potentially causing issues. This change ensures that controllers are only aborted if they are not already in an aborted state, improving robustness and preventing unnecessary operations.
@Shinypaper
Copy link

I've run into a similar issue around this. This fix would be helpful to get in.

@github-project-automation github-project-automation bot moved this from New to Approved PRs in Issues and PRs Apr 23, 2025
@kwasniew
Copy link
Contributor

@ActuallyConnor @Shinypaper what was the impact of calling abort twice? I'd expect the second one to be a no-op.

@ActuallyConnor
Copy link
Author

@ActuallyConnor @Shinypaper what was the impact of calling abort twice? I'd expect the second one to be a no-op.

@kwasniew Great question. For our case we noticed it was causing page hang ups occasionally. Our session replay functionality caught the issue and flagged it for me. Just wanted to help out and address our issue simultaneously. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Approved PRs
Development

Successfully merging this pull request may close these issues.

4 participants