From f61aeccb5d925acfc862700263f91082a0419072 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 16 Dec 2015 11:54:07 +1300 Subject: Always use old format for async servlet --- src/org/traccar/web/AsyncServlet.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3