Fixed removal of hidden connections

This commit is contained in:
Jaroslav Kysela 2000-12-01 11:49:54 +00:00
parent 3180b94099
commit 6228fe8e07

View file

@ -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));