aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/FilterHandler.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/FilterHandler.java b/src/org/traccar/FilterHandler.java
index 725f9c429..f1df7ce2c 100644
--- a/src/org/traccar/FilterHandler.java
+++ b/src/org/traccar/FilterHandler.java
@@ -175,10 +175,14 @@ public class FilterHandler extends BaseDataHandler {
filterType.append("Distance ");
}
- if (!"".equals(filterType.toString()) && !filterLimit(p)) {
+ if (filterType.length() > 0) {
result = true;
}
+ if (filterLimit(p)) {
+ result = false;
+ }
+
if (result) {
Log.info("Position filtered by " + filterType.toString() + "filters from " + p.getDeviceId());
}