aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 11:54:07 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 11:54:07 +1300
commitf61aeccb5d925acfc862700263f91082a0419072 (patch)
tree55723f183eac1f062342082f1391f7978eb2a30a /src/org
parent3b3ffac17aadd53dda2476350b5ab0017c2cfaa9 (diff)
downloadtraccar-server-f61aeccb5d925acfc862700263f91082a0419072.tar.gz
traccar-server-f61aeccb5d925acfc862700263f91082a0419072.tar.bz2
traccar-server-f61aeccb5d925acfc862700263f91082a0419072.zip
Always use old format for async servlet
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/web/AsyncServlet.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/org/traccar/web/AsyncServlet.java b/src/org/traccar/web/AsyncServlet.java
index c55fd6e75..b10df5408 100644
--- a/src/org/traccar/web/AsyncServlet.java
+++ b/src/org/traccar/web/AsyncServlet.java
@@ -178,14 +178,7 @@ public class AsyncServlet extends BaseServlet {
JsonObjectBuilder result = Json.createObjectBuilder();
result.add("success", true);
- if (Context.getConfig().getBoolean("web.oldAsyncFormat")) {
- result.add("data", JsonConverter.arrayToJson(positionUpdates));
- } else {
- JsonObjectBuilder data = Json.createObjectBuilder();
- data.add("devices", JsonConverter.arrayToJson(deviceUpdates));
- data.add("positions", JsonConverter.arrayToJson(positionUpdates));
- result.add("data", data.build());
- }
+ result.add("data", JsonConverter.arrayToJson(positionUpdates));
deviceUpdates.clear();
positionUpdates.clear();