diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-07 07:17:09 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-07 07:17:09 -0700 |
commit | 9a285e59e580994dc9c3f80935f766f3dafdcd46 (patch) | |
tree | 6f3af805426b54ba044b580134398adc60c2b242 /src/main/java/org/traccar/handler/PostProcessHandler.java | |
parent | 204b0a020a4bd2c3d17754ba183c39ea3035e0ae (diff) | |
download | trackermap-server-9a285e59e580994dc9c3f80935f766f3dafdcd46.tar.gz trackermap-server-9a285e59e580994dc9c3f80935f766f3dafdcd46.tar.bz2 trackermap-server-9a285e59e580994dc9c3f80935f766f3dafdcd46.zip |
Fix filtering handlerv6.0
Diffstat (limited to 'src/main/java/org/traccar/handler/PostProcessHandler.java')
-rw-r--r-- | src/main/java/org/traccar/handler/PostProcessHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/handler/PostProcessHandler.java b/src/main/java/org/traccar/handler/PostProcessHandler.java index e1d833e46..5b1b2ef86 100644 --- a/src/main/java/org/traccar/handler/PostProcessHandler.java +++ b/src/main/java/org/traccar/handler/PostProcessHandler.java @@ -47,7 +47,7 @@ public class PostProcessHandler extends BasePositionHandler { @Override public void handlePosition(Position position, Callback callback) { try { - if (position != null && PositionUtil.isLatest(cacheManager, position)) { + if (PositionUtil.isLatest(cacheManager, position)) { Device updatedDevice = new Device(); updatedDevice.setId(position.getDeviceId()); updatedDevice.setPositionId(position.getId()); @@ -61,7 +61,7 @@ public class PostProcessHandler extends BasePositionHandler { } catch (StorageException error) { LOGGER.warn("Failed to update device", error); } - callback.processed(position); + callback.processed(false); } } |