summaryrefslogtreecommitdiff
path: root/widgets/JttyN1mmOutput.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/JttyN1mmOutput.hpp')
-rw-r--r--widgets/JttyN1mmOutput.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/JttyN1mmOutput.hpp b/widgets/JttyN1mmOutput.hpp
index ad92fc23..dc64f7a8 100644
--- a/widgets/JttyN1mmOutput.hpp
+++ b/widgets/JttyN1mmOutput.hpp
@@ -35,6 +35,16 @@ namespace Jtty
}
void abort () { *this = N1mmOutput {}; }
+ // An externally triggered abort (operator stop, watchdog) must resolve
+ // outstanding requests and close the transaction so OUTPUTCOMPLETE can
+ // still be reported. Explicit N1MM ABORT uses abort(), which discards it.
+ void externalAbort ()
+ {
+ requests_.clear ();
+ startRequested_ = false;
+ if (completionPending_) finishRequested_ = true;
+ }
+
bool takeCompletion (bool audioActive, bool drained = false)
{
// Rejections can precede more TXTEXT in the same transaction. OFF