diff --git a/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java b/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java index 13791c4..34cf843 100644 --- a/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java +++ b/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java @@ -33,6 +33,9 @@ public class SolutionAddCommand extends BaseCommandHandler { @Override public CompletableFuture handle(CmdDTO cmdDTO) { + if (deviceStateService.getCommandMutexState().get().isSolutionAddCommandExecuting()) { + throw new AppException(ResultCode.COMMAND_ALREADY_EXECUTING); + } if (deviceStateService.getCommandMutexState().get().isMoveToHeatAreaCommandExecuting() || deviceStateService.getCommandMutexState().get().isMoveToSolutionAreaCommandExecuting() || deviceStateService.getCommandMutexState().get().isSolutionAddCommandExecuting()