daemon: ignore duplicate jack-stopped signal

this is actually a bug in jackdbus because it should not emit
the "stopped" signal when the server stop is attempted and
server is already stopped.

The previous commit cd98f23804 is related
Both this and previous commit are related to ticket #82
This commit is contained in:
Nedko Arnaudov 2010-05-10 03:06:48 +03:00
parent eec435a79d
commit 4428a164c2
1 changed files with 6 additions and 0 deletions

View File

@ -358,6 +358,12 @@ void ladish_studio_run(void)
/* JACK stopped but this was not expected. When expected.
* the change will be consumed by the run method of the studio stop command */
if (g_studio.jack_graph_proxy == NULL)
{
log_error("Ignoring \"JACK stopped\" notification because it is already known that JACK is currently stopped.");
return;
}
if (g_studio.automatic)
{
log_info("Unloading automatic studio.");