aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-16 11:33:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-16 11:33:26 +1300
commitc7d721cfc55b614ab4bf3d656381b7b590ae99e9 (patch)
treef43daabf7b46ebb04b9e22946767b5d5f7f95199 /src/org/traccar/BaseProtocolDecoder.java
parent3563910f1b551c02db5dffc9745bd8aba9cbeeeb (diff)
downloadtrackermap-server-c7d721cfc55b614ab4bf3d656381b7b590ae99e9.tar.gz
trackermap-server-c7d721cfc55b614ab4bf3d656381b7b590ae99e9.tar.bz2
trackermap-server-c7d721cfc55b614ab4bf3d656381b7b590ae99e9.zip
Add outdated position boolean flag
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index f8abdcc85..bd91f5e09 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -75,6 +75,8 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
}
public void getLastLocation(Position position, Date deviceTime) {
+ position.setOutdated(true);
+
Position last = Context.getConnectionManager().getLastPosition(getDeviceId());
if (last != null) {
position.setFixTime(last.getFixTime());