mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
non-positive means <=0
This commit is contained in:
+7
-1
@@ -64,8 +64,14 @@ public class CapturingProcessHandler extends OSProcessHandler {
|
||||
return myOutput;
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts process with specified timeout
|
||||
*
|
||||
* @param timeoutInMilliseconds non-positive means infinity
|
||||
* @return
|
||||
*/
|
||||
public ProcessOutput runProcess(int timeoutInMilliseconds) {
|
||||
if (timeoutInMilliseconds < 0) {
|
||||
if (timeoutInMilliseconds <= 0) {
|
||||
return runProcess();
|
||||
}
|
||||
startNotify();
|
||||
|
||||
Reference in New Issue
Block a user