mirror of https://github.com/ericonr/sndio.git
return 1, if hdl already set
This commit is contained in:
parent
6cbde939dd
commit
8ed593d58a
|
@ -81,7 +81,7 @@ int
|
||||||
midi_connect(void)
|
midi_connect(void)
|
||||||
{
|
{
|
||||||
if (hdl != NULL)
|
if (hdl != NULL)
|
||||||
return;
|
return 1;
|
||||||
hdl = mio_open(port, MIO_IN | MIO_OUT, 0);
|
hdl = mio_open(port, MIO_IN | MIO_OUT, 0);
|
||||||
if (hdl == NULL) {
|
if (hdl == NULL) {
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
|
Loading…
Reference in New Issue