aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http/CommandsServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/http/CommandsServlet.java')
-rw-r--r--src/org/traccar/http/CommandsServlet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/http/CommandsServlet.java b/src/org/traccar/http/CommandsServlet.java
index f68a7a74e..bf40b79e6 100644
--- a/src/org/traccar/http/CommandsServlet.java
+++ b/src/org/traccar/http/CommandsServlet.java
@@ -31,7 +31,7 @@ public class CommandsServlet extends BaseServlet {
String uniqueId = command.getUniqueId();
- ActiveDevice activeDevice = Context.getDataManager().getActiveDevice(uniqueId);
+ ActiveDevice activeDevice = Context.getConnectionManager().getActiveDevice(uniqueId);
if(activeDevice == null) {
throw new RuntimeException("The device has not yet registered to the server");
}
@@ -45,7 +45,7 @@ public class CommandsServlet extends BaseServlet {
JsonObject json = Json.createReader(req.getReader()).readObject();
String uniqueId = json.getString("uniqueId");
- ActiveDevice activeDevice = Context.getDataManager().getActiveDevice(uniqueId);
+ ActiveDevice activeDevice = Context.getConnectionManager().getActiveDevice(uniqueId);
if(activeDevice == null) {
throw new RuntimeException("The device has not yet registered to the server");
}