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

[websocket] avoid crash when websocket port can't be bound #1792

Closed
wants to merge 1 commit into from

Conversation

grobian
Copy link
Contributor

@grobian grobian commented Aug 14, 2024

Simply using an unavailable port for websocket will make owntone crash during startup because it tries to cleanup resources that are not initialised at all.

Be a bit more careful during deinit so we exit a bit more gracefully on this error condition.

Simply using an unavailable port for websocket will make owntone crash
during startup because it tries to cleanup resources that are not
initialised at all.

Be a bit more careful during deinit so we exit a bit more gracefully on
this error condition.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
@ejurgensen
Copy link
Member

Thanks for this. I have added a slightly different fix for the issue now (commit 92495a7).

@ejurgensen ejurgensen closed this Aug 14, 2024
@grobian grobian deleted the startup-crash branch August 14, 2024 17:56
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.

2 participants