aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/http')
-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));
}