aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notification-matrix.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-09 08:56:35 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-09 11:49:50 +0100
commit1994b23e462c02ee71d5cb9db21d0e6075010c3c (patch)
treeb92ddc36fd96efc938bb55565995cd2b2f36a9eb /mod/notification-matrix.rsc
parent1927dc505a88ef5ecb86d1d925cf44a5225b4b7c (diff)
mod/notification-matrix: $FlushMatrixQueue: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod/notification-matrix.rsc')
-rw-r--r--mod/notification-matrix.rsc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/notification-matrix.rsc b/mod/notification-matrix.rsc
index 3adc1df..751967c 100644
--- a/mod/notification-matrix.rsc
+++ b/mod/notification-matrix.rsc
@@ -18,7 +18,7 @@
:global SetupMatrixJoinRoom;
# flush Matrix queue
-:set FlushMatrixQueue do={
+:set FlushMatrixQueue do={ :do {
:global MatrixQueue;
:global IsFullyConnected;
@@ -57,7 +57,9 @@
/system/scheduler/remove [ find where name="_FlushMatrixQueue" ];
:set MatrixQueue;
}
-}
+} on-error={
+ :global ExitError; $ExitError false $0;
+} }
# send notification via Matrix - expects one array argument
:set ($NotificationFunctions->"matrix") do={