aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/api/resource/CommandResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/CommandResource.java b/src/main/java/org/traccar/api/resource/CommandResource.java
index b69d4d9ac..3df2244d1 100644
--- a/src/main/java/org/traccar/api/resource/CommandResource.java
+++ b/src/main/java/org/traccar/api/resource/CommandResource.java
@@ -124,7 +124,7 @@ public class CommandResource extends ExtendedObjectResource<Command> {
for (Device device : devices) {
Command command = QueuedCommand.fromCommand(entity).toCommand();
command.setDeviceId(device.getId());
- result = result && commandsManager.sendCommand(command);
+ result = commandsManager.sendCommand(command) && result;
}
} else {
permissionsService.checkPermission(Device.class, getUserId(), entity.getDeviceId());