Browse Source

FIX: Process running state

Alexander Koblov 3 years ago
parent
commit
f6e99c46c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/un_process.pas

+ 1 - 1
src/un_process.pas

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