aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/LocationProviderHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-22 10:17:04 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-22 10:17:04 +1300
commit22d3d0b95866dd273a5c4537d727758e8a1ddd15 (patch)
tree1135c1e5db0bcd2e2424320266e846c3f9704363 /src/org/traccar/LocationProviderHandler.java
parentf0d21710b5a59226fe2f45a989d8134d9cae996a (diff)
downloadtrackermap-server-22d3d0b95866dd273a5c4537d727758e8a1ddd15.tar.gz
trackermap-server-22d3d0b95866dd273a5c4537d727758e8a1ddd15.tar.bz2
trackermap-server-22d3d0b95866dd273a5c4537d727758e8a1ddd15.zip
Fix minor issues in the code
Diffstat (limited to 'src/org/traccar/LocationProviderHandler.java')
-rw-r--r--src/org/traccar/LocationProviderHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/LocationProviderHandler.java b/src/org/traccar/LocationProviderHandler.java
index c59427474..3c0fcf522 100644
--- a/src/org/traccar/LocationProviderHandler.java
+++ b/src/org/traccar/LocationProviderHandler.java
@@ -45,7 +45,7 @@ public class LocationProviderHandler implements ChannelUpstreamHandler {
Object message = e.getMessage();
if (message instanceof Position) {
final Position position = (Position) message;
- if (position.getOutdated() || (processInvalidPositions && !position.getValid())) {
+ if (position.getOutdated() || processInvalidPositions && !position.getValid()) {
locationProvider.getLocation(position.getAttributes(), new LocationProvider.LocationProviderCallback() {
@Override
public void onSuccess(double latitude, double longitude) {