diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-16 11:54:07 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-16 11:54:07 +1300 |
commit | f61aeccb5d925acfc862700263f91082a0419072 (patch) | |
tree | 55723f183eac1f062342082f1391f7978eb2a30a | |
parent | 3b3ffac17aadd53dda2476350b5ab0017c2cfaa9 (diff) | |
download | trackermap-server-f61aeccb5d925acfc862700263f91082a0419072.tar.gz trackermap-server-f61aeccb5d925acfc862700263f91082a0419072.tar.bz2 trackermap-server-f61aeccb5d925acfc862700263f91082a0419072.zip |
Always use old format for async servlet
-rw-r--r-- | src/org/traccar/web/AsyncServlet.java | 9 |
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(); |