summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/aucat.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-07-10 12:28:18 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-07-10 12:28:18 +0000
commit687fd088b74648eea65b572dbc533465231767f8 (patch)
tree8f01d0e2e747818544de36f0d509d945f66d5587 /usr.bin/aucat/aucat.c
parentd1b7b0f34d441758e4b123f731d5425b59658a8f (diff)
In midi server mode, don't terminate the midi thru box if there are
no connections anymore.
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r--usr.bin/aucat/aucat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 5a0b31c63bb..82b497666a4 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.100 2010/07/10 11:56:28 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.101 2010/07/10 12:28:17 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -992,7 +992,7 @@ midicat_main(int argc, char **argv)
errx(1, "%s: can't open device", cd->path);
if (!dev_ref(d))
errx(1, "couldn't open midi thru box");
- if (!SLIST_EMPTY(&cd->opts) && APROC_OK(d->midi))
+ if (SLIST_EMPTY(&cd->opts) && APROC_OK(d->midi))
d->midi->flags |= APROC_QUIT;
/*