alsa: improve multiError handling in setup function

Issue #311 resolved
Trek Hopton created an issue

The error handling in the alsa package’s setup function is not correct. If an error is caused by an invalid config parameter ie. a multiError, it shouldn’t stop the rest of the function from executing, but it currently does. The errors should only be returned at the end of the function.

A related issue is that the method of checking if the error returned is a multiError is not correct. (audio_linux.go) This causes the function to treat the multiError as a normal error and stop the program.

Comments (1)

  1. Log in to comment