ladishd: fix behaviour after complete of jack server start and stop commands

This commit is contained in:
Nedko Arnaudov 2009-11-25 04:05:56 +02:00
parent 4d061b7a39
commit 17c848f1fd
3 changed files with 8 additions and 2 deletions

View File

@ -64,7 +64,9 @@ static bool run(void * context)
log_info("Wait for JACK server start complete.");
ASSERT(jack_server_started);
emit_studio_started();
on_event_jack_started(); /* fetch configuration and announce start */
cmd_ptr->state = LADISH_COMMAND_STATE_DONE;
return true;
}

View File

@ -64,7 +64,9 @@ static bool run(void * context)
log_info("Wait for JACK server stop complete.");
ASSERT(!jack_server_started);
emit_studio_stopped();
on_event_jack_stopped();
cmd_ptr->state = LADISH_COMMAND_STATE_DONE;
return true;
}

View File

@ -178,5 +178,7 @@ bool studio_is_started(void);
void emit_studio_started(void);
void emit_studio_stopped(void);
void emit_studio_renamed(void);
void on_event_jack_started(void);
void on_event_jack_stopped(void);
#endif /* #ifndef STUDIO_INTERNAL_H__B4CB73EC_8E89_401A_9E49_F0AEEF361D09__INCLUDED */