diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-18 15:02:04 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-18 15:02:04 +1200 |
commit | 601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc (patch) | |
tree | 8553cfa022feb2f8418157e5b3bba9b3a27964a4 /src/org/traccar/http | |
parent | 04d300ca65f448301047c6f97bd88da13026b2bc (diff) | |
download | trackermap-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.tar.gz trackermap-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.tar.bz2 trackermap-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.zip |
Force initial async update
Diffstat (limited to 'src/org/traccar/http')
-rw-r--r-- | src/org/traccar/http/AsyncServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<Long> devices = Context.getPermissionsManager().allowedDevices(user.getId()); asyncSessions.put(user.getId(), new AsyncSession(user.getId(), devices)); } |