diff options
author | Abyss777 <abyss@fox5.ru> | 2017-02-15 09:08:15 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-02-15 09:08:15 +0500 |
commit | a3a5441a395aabbe08b88e38ad4343cf0ac6593d (patch) | |
tree | f10e679a4746d1d39f0f0bbaa841a9c2ca925184 | |
parent | 50fe70f34e9d59fecfa95595b9db95ab2c1450fe (diff) | |
download | traccar-server-a3a5441a395aabbe08b88e38ad4343cf0ac6593d.tar.gz traccar-server-a3a5441a395aabbe08b88e38ad4343cf0ac6593d.tar.bz2 traccar-server-a3a5441a395aabbe08b88e38ad4343cf0ac6593d.zip |
Remove check for valid in IgnitionEventHandler
-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; } |