Skip to content

Commit 562c565

Browse files
committed
global-functions: $FlushEmailQueue: do not flush if sending
1 parent a05b8c1 commit 562c565

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

global-functions

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@
330330
:local AllDone true;
331331
:local QueueLen [ :len $EmailQueue ];
332332

333+
:if ([ /tool/e-mail/get last-status ] = "in-progress") do={
334+
$LogPrintExit2 debug $0 ("Sending mail in currently in progress, not flushing.") false;
335+
:return false;
336+
}
337+
333338
:if ([ $IsTimeSync ] = false) do={
334339
$LogPrintExit2 debug $0 ("Time is not synced, not flushing.") false;
335340
:return false;

0 commit comments

Comments
 (0)