diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-25 23:53:44 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-25 23:53:44 +1200 |
commit | 7e20896334f4f6927cf14c5272cf7d893efc3a05 (patch) | |
tree | 4ce04313dde4989a4c5b16816ddfeab1a6381876 /src/org/traccar/events/GeofenceEventHandler.java | |
parent | 8c4eb2eff9da9bf0538e413444c1e6dae981b99e (diff) | |
parent | 80847cc39a0570a91618c2d9da283767a99fd975 (diff) | |
download | trackermap-server-7e20896334f4f6927cf14c5272cf7d893efc3a05.tar.gz trackermap-server-7e20896334f4f6927cf14c5272cf7d893efc3a05.tar.bz2 trackermap-server-7e20896334f4f6927cf14c5272cf7d893efc3a05.zip |
Merge pull request #2149 from Abyss777/lastposition_reorganization
Move lastPosition update to the end of pipeline
Diffstat (limited to 'src/org/traccar/events/GeofenceEventHandler.java')
-rw-r--r-- | src/org/traccar/events/GeofenceEventHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/events/GeofenceEventHandler.java b/src/org/traccar/events/GeofenceEventHandler.java index 1ea7aee41..a9bed6f82 100644 --- a/src/org/traccar/events/GeofenceEventHandler.java +++ b/src/org/traccar/events/GeofenceEventHandler.java @@ -47,7 +47,7 @@ public class GeofenceEventHandler extends BaseEventHandler { if (device == null) { return null; } - if (position.getId() != device.getPositionId() || !position.getValid()) { + if (!Context.getDeviceManager().isLatestPosition(position) || !position.getValid()) { return null; } |