Browse Source

FIX: Process running state

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

+ 2 - 1
src/un_process.pas

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