Bug 864803 - sutAgent: do not destroy process if it has ended already; r=jmaher DONTBUILD

This commit is contained in:
Geoff Brown 2013-04-25 17:10:42 -06:00
parent c8264eae8d
commit 8ceca5da68

View File

@ -136,7 +136,7 @@ public class RedirOutputThread extends Thread
}
}
// wait for process to end, if it has not already, then destroy it
// wait for process to end; if it has not already ended, then destroy it
try
{
pProc.waitFor();
@ -144,8 +144,8 @@ public class RedirOutputThread extends Thread
catch (InterruptedException e)
{
e.printStackTrace();
pProc.destroy();
}
pProc.destroy();
buffer = null;
System.gc();
}