From 601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 18 Jun 2015 15:02:04 +1200 Subject: Force initial async update --- src/org/traccar/http/AsyncServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/http/AsyncServlet.java b/src/org/traccar/http/AsyncServlet.java index 16402e24b..5481f4ba3 100644 --- a/src/org/traccar/http/AsyncServlet.java +++ b/src/org/traccar/http/AsyncServlet.java @@ -181,7 +181,7 @@ public class AsyncServlet extends HttpServlet { synchronized (asyncSessions) { - if (!asyncSessions.containsKey(user.getId())) { + if (Boolean.valueOf(req.getParameter("first")) || !asyncSessions.containsKey(user.getId())) { Collection devices = Context.getPermissionsManager().allowedDevices(user.getId()); asyncSessions.put(user.getId(), new AsyncSession(user.getId(), devices)); } -- cgit v1.2.3