diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-12 15:16:10 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-12 15:16:10 +0500 |
commit | 1fd120a7fb74134a8ed7e12e685137f77a872567 (patch) | |
tree | 9a405e494c478d13073145f7d44eeecc96f5c7fb /src/org | |
parent | 5d3b7cbe5924d4a4552035626a83e26b1e756255 (diff) | |
download | traccar-server-1fd120a7fb74134a8ed7e12e685137f77a872567.tar.gz traccar-server-1fd120a7fb74134a8ed7e12e685137f77a872567.tar.bz2 traccar-server-1fd120a7fb74134a8ed7e12e685137f77a872567.zip |
Always calculate distance
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 4 |
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")) { |