mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Fix logic bug that would sometimes fail to send a queue update message to controlling process.
This commit is contained in:
14
src/queue.c
14
src/queue.c
@@ -495,10 +495,16 @@ void HandleQueuedReminders(void)
|
||||
suspended or hibernated, remove from queue */
|
||||
if (q->tt.ttime < MinutesPastMidnight(1) - MaxLateMinutes &&
|
||||
q->tt.nexttime < MinutesPastMidnight(1) - MaxLateMinutes) {
|
||||
del_reminder((unsigned long) q);
|
||||
if (IsServerMode()) {
|
||||
print_num_queued();
|
||||
}
|
||||
q->tt.nexttime = NO_TIME;
|
||||
}
|
||||
}
|
||||
|
||||
/* If queued reminder has expired, actually remove it from queue
|
||||
and update status */
|
||||
if (q->tt.nexttime == NO_TIME) {
|
||||
del_reminder((unsigned long) q);
|
||||
if (IsServerMode()) {
|
||||
print_num_queued();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user