diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-20 09:28:20 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-20 09:28:20 -0700 |
commit | 7b3fda2da562ce7b259a232bf9fc5f519c138283 (patch) | |
tree | cb83e41b95e318e5236cf66676dfa3a613805395 /src/main/java/org/traccar/schedule | |
parent | 0a5683733c7b01a0af07cee7a4340c45e19b6ceb (diff) | |
download | trackermap-server-7b3fda2da562ce7b259a232bf9fc5f519c138283.tar.gz trackermap-server-7b3fda2da562ce7b259a232bf9fc5f519c138283.tar.bz2 trackermap-server-7b3fda2da562ce7b259a232bf9fc5f519c138283.zip |
Fix overlapping report schedules
Diffstat (limited to 'src/main/java/org/traccar/schedule')
-rw-r--r-- | src/main/java/org/traccar/schedule/TaskReports.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/schedule/TaskReports.java b/src/main/java/org/traccar/schedule/TaskReports.java index 2102b2ee1..3989cd6a0 100644 --- a/src/main/java/org/traccar/schedule/TaskReports.java +++ b/src/main/java/org/traccar/schedule/TaskReports.java @@ -81,7 +81,7 @@ public class TaskReports implements ScheduleTask { var lastEvents = calendar.findPeriods(lastCheck); var currentEvents = calendar.findPeriods(currentCheck); - if (!lastEvents.isEmpty() && currentEvents.isEmpty()) { + if (!lastEvents.isEmpty() && !currentEvents.equals(lastEvents)) { Period period = lastEvents.iterator().next(); RequestScoper scope = ServletScopes.scopeRequest(Collections.emptyMap()); try (RequestScoper.CloseableScope ignored = scope.open()) { |