From 6228fe8e07b6109d4066e427922c2abd78cae17c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 1 Dec 2000 11:49:54 +0000 Subject: [PATCH] Fixed removal of hidden connections --- seq/aconnect/aconnect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/seq/aconnect/aconnect.c b/seq/aconnect/aconnect.c index a02f43f..47ad61b 100644 --- a/seq/aconnect/aconnect.c +++ b/seq/aconnect/aconnect.c @@ -237,6 +237,8 @@ static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *cinfo, snd_seq_port_subscribe_t subs; if (snd_seq_get_any_port_info(seq, query.addr.client, query.addr.port, &port) < 0) continue; + if (!(port.capability & SND_SEQ_PORT_CAP_SUBS_READ)) + continue; if (port.capability & SND_SEQ_PORT_CAP_NO_EXPORT) continue; memset(&subs, 0, sizeof(subs)); @@ -256,6 +258,8 @@ static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *cinfo, snd_seq_port_subscribe_t subs; if (snd_seq_get_any_port_info(seq, query.addr.client, query.addr.port, &port) < 0) continue; + if (!(port.capability & SND_SEQ_PORT_CAP_SUBS_WRITE)) + continue; if (port.capability & SND_SEQ_PORT_CAP_NO_EXPORT) continue; memset(&subs, 0, sizeof(subs));