From 8ed593d58afa0de219f0666bef8913425054a70b Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 14 Feb 2014 15:19:44 +0100 Subject: [PATCH] return 1, if hdl already set --- xvolkeys/xvolkeys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xvolkeys/xvolkeys.c b/xvolkeys/xvolkeys.c index e5ea7e5..810539c 100644 --- a/xvolkeys/xvolkeys.c +++ b/xvolkeys/xvolkeys.c @@ -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)