Commit 8129fb1a authored by sletz's avatar sletz
Browse files

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1853 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 795874b7
......@@ -561,25 +561,20 @@ int JackEngine::ClientCloseAux(int refnum, JackClientInterface* client, bool wai
// Remove the client from the table
ReleaseRefnum(refnum);
// Remove ports : notiy unregister then remove all ports
// Notiy unregister
jack_int_t ports[PORT_NUM_FOR_CLIENT];
fGraphManager->GetInputPorts(refnum, ports);
for (int i = 0; i < PORT_NUM_FOR_CLIENT; i++) {
if (ports[i] != EMPTY)
NotifyPortRegistation(ports[i], false);
else
break;
for (int i = 0; (i < PORT_NUM_FOR_CLIENT) && (ports[i] != EMPTY) ; i++) {
NotifyPortRegistation(ports[i], false);
}
fGraphManager->GetOutputPorts(refnum, ports);
for (int i = 0; i < PORT_NUM_FOR_CLIENT; i++) {
if (ports[i] != EMPTY)
NotifyPortRegistation(ports[i], false);
else
break;
for (int i = 0; (i < PORT_NUM_FOR_CLIENT) && (ports[i] != EMPTY) ; i++) {
NotifyPortRegistation(ports[i], false);
}
// Remove all ports
fGraphManager->RemoveAllPorts(refnum);
// Wait until next cycle to be sure client is not used anymore
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment