Fixed behavior where client never dequeued successful commands, because the server only did that in case the command failed

This commit is contained in:
Ziggy
2022-04-15 22:38:38 +02:00
parent 7278dd99cf
commit b421aad6bb
@@ -147,13 +147,11 @@ public class CommandQueueService extends Service {
startCooldownGroup(command.getSource(), rootCommand, rootCommand.getCooldownGroup2(), rootCommand.getCooldownTime2(), command.getCounter());
}
startCooldownGroup(command.getSource(), rootCommand, rootCommand.getCooldownGroup(), rootCommand.getCooldownTime(), command.getCounter());
} else {
sendQueueRemove(command, error);
}
ExecuteCommandIntent.broadcast(command.getSource(), command.getTarget(), command.getArguments(), command.getCommand());
} else {
sendQueueRemove(command, error);
}
sendQueueRemove(command, error);
}
private void sendQueueRemove(EnqueuedCommand command, ErrorCode error) {