Fixed removing or mark-sent of commands

This commit is contained in:
martin 2021-04-12 23:56:19 +02:00 committed by Michael Van Canneyt
parent 36cb79dfb3
commit 90e966751d

View File

@ -394,14 +394,14 @@ begin
C:=TJSONObject.Create;
Cmd.ToJSON(C);
A.Add(C);
L2.Add(C);
L2.Add(CMD);
end;
end;
SendJSONResponse(J,aResponse);
// Remove sent from list
for I:=0 to L2.Count-1 do
begin
Cmd:=TIDECommand(L[i]);
Cmd:=TIDECommand(L2[i]);
if Cmd.NeedsConfirmation then
Cmd.Sent:=True
else