don't seg on shutdown when jackd wasn't there

This commit is contained in:
Bill Currie 2007-03-18 22:09:51 +00:00 committed by Jeff Teunissen
parent a2b1cc7845
commit 48e7b65f51

View file

@ -175,10 +175,12 @@ static void
s_shutdown (void) s_shutdown (void)
{ {
int i; int i;
jack_deactivate (jack_handle); if (jack_handle) {
for (i = 0; i < 2; i++) jack_deactivate (jack_handle);
jack_port_unregister (jack_handle, jack_out[i]); for (i = 0; i < 2; i++)
jack_client_close (jack_handle); jack_port_unregister (jack_handle, jack_out[i]);
jack_client_close (jack_handle);
}
} }
static general_funcs_t plugin_info_general_funcs = { static general_funcs_t plugin_info_general_funcs = {