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
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ int
midi_connect(void)
{
if (hdl != NULL)
return;
return 1;
hdl = mio_open(port, MIO_IN | MIO_OUT, 0);
if (hdl == NULL) {
if (verbose)