ladishd: fix behaviour after complete of jack server start and stop commands
This commit is contained in:
parent
4d061b7a39
commit
17c848f1fd
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue