triggerbox: stop immediately when stop_all() is used
This commit is contained in:
parent
0c7d578199
commit
050b046e4d
@ -317,12 +317,20 @@ Trigger::process_state_requests ()
|
|||||||
bool stop = _requests.stop.exchange (false);
|
bool stop = _requests.stop.exchange (false);
|
||||||
|
|
||||||
if (stop) {
|
if (stop) {
|
||||||
if (_state == Running) {
|
|
||||||
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 noticed stop request\n", name()));
|
/* This is for an immediate stop, not a quantized one */
|
||||||
begin_stop ();
|
|
||||||
} else if (_state == WaitingToStart || _state == WaitingForRetrigger) {
|
if (_state != Stopped) {
|
||||||
shutdown ();
|
shutdown ();
|
||||||
|
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 immediate stop implemented\n", name()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't process bang/unbang requests since we're stopping */
|
||||||
|
|
||||||
|
_bang = 0;
|
||||||
|
_unbang = 0;
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now check bangs/unbangs */
|
/* now check bangs/unbangs */
|
||||||
|
Loading…
Reference in New Issue
Block a user