Skip to content
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

Stop using a context with deferred cancel in the autopilot loop #851

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Dec 21, 2023

There is no reason to defer a cancel in the autopilot loop. This is actual a big issue because we pass these contexts to goroutines and then go on to cancel them.

@peterjan peterjan self-assigned this Dec 21, 2023
@peterjan peterjan marked this pull request as ready for review December 21, 2023 14:45
@peterjan peterjan changed the title Shutdown ctx Stop using a context with deferred cancel in the autopilot loop Dec 21, 2023
@ChrisSchinnerl ChrisSchinnerl merged commit f1febab into dev Dec 21, 2023
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/context-fix branch December 21, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants