diff options
author | Anton Tananaev <anton@traccar.org> | 2023-04-30 11:49:28 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-04-30 11:49:28 -0700 |
commit | bb6964f03867d039a547c103cd16390f78688022 (patch) | |
tree | db15c7b678185a9f41b190ad171081fbe4d496fe /src | |
parent | 0f8dd92a6b1b9a288be888838a30195a6de41250 (diff) | |
download | trackermap-server-bb6964f03867d039a547c103cd16390f78688022.tar.gz trackermap-server-bb6964f03867d039a547c103cd16390f78688022.tar.bz2 trackermap-server-bb6964f03867d039a547c103cd16390f78688022.zip |
Fix group commands (fix #5075)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/api/resource/CommandResource.java | 2 |
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()); |