aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authornamo <namo@gurtam.com>2017-10-20 09:30:36 +0300
committernamo <namo@gurtam.com>2017-10-20 09:30:36 +0300
commit8483681361a386d0159422ed089ed3360161811c (patch)
treed68e1703030582be68c956ef6bb455229e44581b /src/org/traccar/BaseProtocolDecoder.java
parentfb82a8167b99f706cb25d828bf1d72424ba98a75 (diff)
downloadtrackermap-server-8483681361a386d0159422ed089ed3360161811c.tar.gz
trackermap-server-8483681361a386d0159422ed089ed3360161811c.tar.bz2
trackermap-server-8483681361a386d0159422ed089ed3360161811c.zip
Revert "flespi integration: listening messages"
This reverts commit fb82a8167b99f706cb25d828bf1d72424ba98a75.
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index b0fb72225..2d6286bf8 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -29,8 +29,6 @@ import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
-import java.util.Set;
-import java.util.Iterator;
import java.sql.SQLException;
public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
@@ -207,13 +205,6 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
if (!positions.isEmpty()) {
position = (Position) positions.iterator().next();
}
- } else if (decodedMessage instanceof Map) {
- Set<Long> deviceIds = ((HashMap) decodedMessage).keySet();
- Iterator<Long> deviceIdsIterator = deviceIds.iterator();
- while (deviceIdsIterator.hasNext()) {
- Context.getConnectionManager().updateDevice(
- deviceIdsIterator.next(), Device.STATUS_ONLINE, new Date());
- }
}
}
if (position != null) {