aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-12 15:16:10 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-12 15:16:10 +0500
commit1fd120a7fb74134a8ed7e12e685137f77a872567 (patch)
tree9a405e494c478d13073145f7d44eeecc96f5c7fb /src
parent5d3b7cbe5924d4a4552035626a83e26b1e756255 (diff)
downloadtraccar-server-1fd120a7fb74134a8ed7e12e685137f77a872567.tar.gz
traccar-server-1fd120a7fb74134a8ed7e12e685137f77a872567.tar.bz2
traccar-server-1fd120a7fb74134a8ed7e12e685137f77a872567.zip
Always calculate distance
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/BasePipelineFactory.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index ed7aa0a69..e2b991afa 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -132,9 +132,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
Context.getLocationProvider(), Context.getConfig().getBoolean("location.processInvalidPositions"));
}
- if (Context.getConfig().getBoolean("distance.enable")) {
- distanceHandler = new DistanceHandler();
- }
+ distanceHandler = new DistanceHandler();
if (Context.getConfig().hasKey("location.latitudeHemisphere")
|| Context.getConfig().hasKey("location.longitudeHemisphere")) {