mirror of https://github.com/ericonr/sndio.git
Fix a typo in the condition to check if a midi port is referenced,
causing the port to be closed prematurely
This commit is contained in:
parent
0f2025bd71
commit
1129bb8a7b
|
@ -512,7 +512,7 @@ port_unref(struct port *c)
|
||||||
#endif
|
#endif
|
||||||
for (rxmask = 0, i = 0; i < MIDI_NEP; i++)
|
for (rxmask = 0, i = 0; i < MIDI_NEP; i++)
|
||||||
rxmask |= midi_ep[i].txmask;
|
rxmask |= midi_ep[i].txmask;
|
||||||
if ((rxmask & c->midi->self) == 0 && c->state == PORT_INIT && !c->hold)
|
if ((rxmask & ~c->midi->self) == 0 && c->state == PORT_INIT && !c->hold)
|
||||||
port_drain(c);
|
port_drain(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue