Do not try to unregister ports with a lost jackd.

libjack seems to get stuck when unregistering ports with a broken
connection.
This commit is contained in:
Bill Currie 2012-01-27 19:58:03 +09:00
parent 8ac9ff0134
commit d18aa2fe3e

View file

@ -354,8 +354,10 @@ s_shutdown (void)
int i;
if (jack_handle) {
jack_deactivate (jack_handle);
for (i = 0; i < 2; i++)
jack_port_unregister (jack_handle, jack_out[i]);
if (!snd_shutdown) {
for (i = 0; i < 2; i++)
jack_port_unregister (jack_handle, jack_out[i]);
}
jack_client_close (jack_handle);
}
}