aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-04-30 11:49:28 -0700
committerAnton Tananaev <anton@traccar.org>2023-04-30 11:49:28 -0700
commitbb6964f03867d039a547c103cd16390f78688022 (patch)
treedb15c7b678185a9f41b190ad171081fbe4d496fe /src/main/java/org/traccar
parent0f8dd92a6b1b9a288be888838a30195a6de41250 (diff)
downloadtrackermap-server-bb6964f03867d039a547c103cd16390f78688022.tar.gz
trackermap-server-bb6964f03867d039a547c103cd16390f78688022.tar.bz2
trackermap-server-bb6964f03867d039a547c103cd16390f78688022.zip
Fix group commands (fix #5075)
Diffstat (limited to 'src/main/java/org/traccar')
-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());