diff options
author | 2010-06-05 16:05:17 +0000 | |
---|---|---|
committer | 2010-06-05 16:05:17 +0000 | |
commit | eababf22c387cb1c2d88aa6876d8d24b5d607c10 (patch) | |
tree | 75784578119db0ba3f5f6a675254a4fcdcef06ba | |
parent | don't prime server buffers, because it's ugly and conceptually (diff) | |
download | wireguard-openbsd-eababf22c387cb1c2d88aa6876d8d24b5d607c10.tar.xz wireguard-openbsd-eababf22c387cb1c2d88aa6876d8d24b5d607c10.zip |
When closing the device, request clients using a midi control slot
to quit. Otherwise streams that are not attached to the device are
not closed.
-rw-r--r-- | usr.bin/aucat/midi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/aucat/midi.c b/usr.bin/aucat/midi.c index d7a85512aef..85814906e95 100644 --- a/usr.bin/aucat/midi.c +++ b/usr.bin/aucat/midi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.26 2010/06/04 07:02:59 ratchov Exp $ */ +/* $OpenBSD: midi.c,v 1.27 2010/06/05 16:05:17 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -1120,8 +1120,8 @@ ctl_eof(struct aproc *p, struct abuf *ibuf) if (!(p->flags & APROC_QUIT)) return; for (i = 0, s = p->u.ctl.slot; i < CTL_NSLOT; i++, s++) { - if (s->ops) - return; + if (s->ops != NULL) + s->ops->quit(s->arg); } if (!LIST_EMPTY(&p->outs) || !LIST_EMPTY(&p->ins)) aproc_del(p); |