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

Remove assertion for disconnect #40

Open
DivineDominion opened this issue May 10, 2023 · 1 comment · May be fixed by #41
Open

Remove assertion for disconnect #40

DivineDominion opened this issue May 10, 2023 · 1 comment · May be fixed by #41

Comments

@DivineDominion
Copy link
Contributor

assert(port.state == .connected)

This assertion fires when you unplug a MIDI device of which a port is used.

I think removing this cause for runtime exceptions in DEBUG builds is a good fit (because the assumption that the device is still connected isn't always true!) and cannot gracefully be handled at all.

@DivineDominion
Copy link
Contributor Author

@adamnemecek Gentle ping: what do you think about removing this?

@DivineDominion DivineDominion linked a pull request Jun 5, 2023 that will close this issue
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 a pull request may close this issue.

1 participant