mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-26 11:38:36 +02:00
mod/notification-matrix: $FlushMatrixQueue: use $ExitError to indicate unintentional error
This commit is contained in:
parent
1927dc505a
commit
1994b23e46
1 changed files with 4 additions and 2 deletions
|
@ -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={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue