aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-10-23 09:50:35 +0500
committerAbyss777 <abyss@fox5.ru>2017-10-23 09:50:35 +0500
commit0283458de495e8f9f5393b1184c7a670e9851dcc (patch)
tree004593691cb92e1f0bb76f74a90b733f6bee6408 /src/org/traccar/api/resource
parented72ff6e7f964bc56a4948c15c97f37c072bf326 (diff)
downloadtraccar-server-0283458de495e8f9f5393b1184c7a670e9851dcc.tar.gz
traccar-server-0283458de495e8f9f5393b1184c7a670e9851dcc.tar.bz2
traccar-server-0283458de495e8f9f5393b1184c7a670e9851dcc.zip
Implement command cloning
Diffstat (limited to 'src/org/traccar/api/resource')
-rw-r--r--src/org/traccar/api/resource/CommandResource.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/CommandResource.java b/src/org/traccar/api/resource/CommandResource.java
index a25421e31..703638701 100644
--- a/src/org/traccar/api/resource/CommandResource.java
+++ b/src/org/traccar/api/resource/CommandResource.java
@@ -69,8 +69,7 @@ public class CommandResource extends ExtendedObjectResource<Command> {
} else {
Context.getPermissionsManager().checkLimitCommands(getUserId());
}
- boolean sent = Context.getCommandsManager().sendCommand(entity);
- if (!sent) {
+ if (!Context.getCommandsManager().sendCommand(entity)) {
return Response.accepted(entity).build();
}
return Response.ok(entity).build();