1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

return 1, if hdl already set

This commit is contained in:
Alexandre Ratchov 2014-02-14 15:19:44 +01:00
parent 6cbde939dd
commit 8ed593d58a

View File

@ -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)