FIX: Process running state

(cherry picked from commit f6e99c46c6)
This commit is contained in:
Alexander Koblov 2022-08-28 14:32:40 +03:00
commit 7fb0454687

View file

@ -171,7 +171,7 @@ end;
procedure TExProcess.Stop;
begin
FStop:= FProcess.Terminate(-1);
FStop:= (not FProcess.Running) or (FProcess.Terminate(-1));
end;
procedure TExProcess.SetCmdLine(CommandLine: String);