summaryrefslogtreecommitdiff
path: root/widgets/JttyN1mmOutput.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /widgets/JttyN1mmOutput.hpp
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
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