aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-18 15:02:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-18 15:02:04 +1200
commit601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc (patch)
tree8553cfa022feb2f8418157e5b3bba9b3a27964a4 /src/org/traccar
parent04d300ca65f448301047c6f97bd88da13026b2bc (diff)
downloadtraccar-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.tar.gz
traccar-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.tar.bz2
traccar-server-601ffd5cc7e1d6fa66938915264cd2c1d1dbf8bc.zip
Force initial async update
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/http/AsyncServlet.java2
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));
}