diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-18 10:32:02 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-18 10:32:02 +1300 |
commit | b580bf533b6f74749b96adf3652f5584425abe69 (patch) | |
tree | 5d5a7ffccce8c6633b33d15d561bfa3b68af6781 /src/org/traccar/api | |
parent | 2f3d3bce533b5fe7f5b4f530fa5360db2ba2262d (diff) | |
download | trackermap-server-b580bf533b6f74749b96adf3652f5584425abe69.tar.gz trackermap-server-b580bf533b6f74749b96adf3652f5584425abe69.tar.bz2 trackermap-server-b580bf533b6f74749b96adf3652f5584425abe69.zip |
Do not send position with events
Diffstat (limited to 'src/org/traccar/api')
-rw-r--r-- | src/org/traccar/api/AsyncSocket.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/api/AsyncSocket.java b/src/org/traccar/api/AsyncSocket.java index 7ac3810fa..b12d5d252 100644 --- a/src/org/traccar/api/AsyncSocket.java +++ b/src/org/traccar/api/AsyncSocket.java @@ -76,12 +76,9 @@ public class AsyncSocket extends WebSocketAdapter implements ConnectionManager.U } @Override - public void onUpdateEvent(Event event, Position position) { + public void onUpdateEvent(Event event) { Map<String, Collection<?>> data = new HashMap<>(); data.put(KEY_EVENTS, Collections.singletonList(event)); - if (position != null) { - data.put(KEY_POSITIONS, Collections.singletonList(position)); - } sendData(data); } |