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

best effort close client #190

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

srperens
Copy link
Contributor

Remove assert that connection closing is successful.

If the jack server is shutdown/restarted while the client connection is up then the closing will fail and you get a thread panic from the assert.

Furthermore the whole client is forever "bricked" since the assert will happen while holding the CREATE_OR_DESTROY_CLIENT_MUTEX.lock(). The mutex will get a PoisonError which prevents a new client connection to be created again. The mutex is a lazy_static "singleton" so it prevents ANY client to be created for the duration of the application.

@wmedrano
Copy link
Member

lgtm. Pre-existing lint errors can be ignored. I'll refactor GitHub actions so that the tests can still run even when linter fails.

@wmedrano wmedrano merged commit 12e9124 into RustAudio:main Sep 12, 2024
1 check failed
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