aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-02-15 09:08:15 +0500
committerAbyss777 <abyss@fox5.ru>2017-02-15 09:08:15 +0500
commita3a5441a395aabbe08b88e38ad4343cf0ac6593d (patch)
treef10e679a4746d1d39f0f0bbaa841a9c2ca925184 /src
parent50fe70f34e9d59fecfa95595b9db95ab2c1450fe (diff)
downloadtraccar-server-a3a5441a395aabbe08b88e38ad4343cf0ac6593d.tar.gz
traccar-server-a3a5441a395aabbe08b88e38ad4343cf0ac6593d.tar.bz2
traccar-server-a3a5441a395aabbe08b88e38ad4343cf0ac6593d.zip
Remove check for valid in IgnitionEventHandler
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/events/IgnitionEventHandler.java5
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;
}