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

Do not enable web_workflow background callbacks if wifi is not enabled/connected #7960

Merged
merged 1 commit into from
May 11, 2023

Conversation

thess
Copy link

@thess thess commented May 11, 2023

Web Workflow startup is called from supervisor_workflow_reset which is invoked at every VM start/exit. Actual startup is not called until after safemode run has been attempted. Attempting to handle workflow background callbacks without having wifi connected references un-initialized socket objects which can cause corruption or crashes. This patch prevents the supervisor_web_workflow_background from being invoked if web workflow wifi is not connected.

@dhalbert dhalbert requested a review from tannewt May 11, 2023 17:44
@tannewt
Copy link
Member

tannewt commented May 11, 2023

I'll look once CI is green.

@thess
Copy link
Author

thess commented May 11, 2023

Whoops - sorry about that. All fixed now - just Wifi boards.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 99a7047 into adafruit:main May 11, 2023
415 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants