diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-15 17:12:43 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 17:12:43 +1300 |
commit | 6ed2b3884d36ab133d9501983cd00bbe46fe4393 (patch) | |
tree | f10e679a4746d1d39f0f0bbaa841a9c2ca925184 /src/org/traccar/events/IgnitionEventHandler.java | |
parent | 50fe70f34e9d59fecfa95595b9db95ab2c1450fe (diff) | |
parent | a3a5441a395aabbe08b88e38ad4343cf0ac6593d (diff) | |
download | trackermap-server-6ed2b3884d36ab133d9501983cd00bbe46fe4393.tar.gz trackermap-server-6ed2b3884d36ab133d9501983cd00bbe46fe4393.tar.bz2 trackermap-server-6ed2b3884d36ab133d9501983cd00bbe46fe4393.zip |
Merge pull request #2912 from Abyss777/fix_2911
Remove check for valid in IgnitionEventHandler
Diffstat (limited to 'src/org/traccar/events/IgnitionEventHandler.java')
-rw-r--r-- | src/org/traccar/events/IgnitionEventHandler.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/events/IgnitionEventHandler.java b/src/org/traccar/events/IgnitionEventHandler.java index 187b7ce73..c628cc107 100644 --- a/src/org/traccar/events/IgnitionEventHandler.java +++ b/src/org/traccar/events/IgnitionEventHandler.java @@ -30,10 +30,7 @@ public class IgnitionEventHandler extends BaseEventHandler { @Override protected Collection<Event> analyzePosition(Position position) { Device device = Context.getIdentityManager().getDeviceById(position.getDeviceId()); - if (device == null) { - return null; - } - if (!Context.getIdentityManager().isLatestPosition(position) || !position.getValid()) { + if (device == null || !Context.getIdentityManager().isLatestPosition(position)) { return null; } |