Skip to content

Commit 1090d13

Browse files
regaw-leinadregaw-leinad
authored andcommitted
Whoops, how did that slip by?
1 parent 59ad21d commit 1090d13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

AndroidLib/Classes/Util/Command.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal static string RunProcessReturnOutput(string executable, string argument
4242

4343
using (AutoResetEvent outputWaitHandle = new AutoResetEvent(false))
4444
using (AutoResetEvent errorWaitHandle = new AutoResetEvent(false))
45-
return HandleOutput(p, outputWaitHandle, errorWaitHandle, timeout);
45+
return HandleOutput(p, outputWaitHandle, errorWaitHandle, timeout, false);
4646
}
4747
}
4848

@@ -62,11 +62,11 @@ internal static string RunProcessReturnOutput(string executable, string argument
6262

6363
using (AutoResetEvent outputWaitHandle = new AutoResetEvent(false))
6464
using (AutoResetEvent errorWaitHandle = new AutoResetEvent(false))
65-
return HandleOutput(p, outputWaitHandle, errorWaitHandle, timeout);
65+
return HandleOutput(p, outputWaitHandle, errorWaitHandle, timeout, forceRegular);
6666
}
6767
}
6868

69-
private static string HandleOutput(Process p, AutoResetEvent outputWaitHandle, AutoResetEvent errorWaitHandle, int timeout)
69+
private static string HandleOutput(Process p, AutoResetEvent outputWaitHandle, AutoResetEvent errorWaitHandle, int timeout, bool forceRegular)
7070
{
7171
StringBuilder output = new StringBuilder();
7272
StringBuilder error = new StringBuilder();
@@ -95,7 +95,7 @@ private static string HandleOutput(Process p, AutoResetEvent outputWaitHandle, A
9595
{
9696
string strReturn = "";
9797

98-
if (error.ToString().Trim().Length.Equals(0))
98+
if (error.ToString().Trim().Length.Equals(0) || forceRegular)
9999
strReturn = output.ToString().Trim();
100100
else
101101
strReturn = error.ToString().Trim();

0 commit comments

Comments
 (0)