Destroy headless process if it goes too long
Former-commit-id: e3c2ab91be
Former-commit-id: 1eded14d0e2320a2d7fda6e6d48482633b083373
This commit is contained in:
@ -510,9 +510,9 @@ public class I2PFirefox extends I2PCommonBrowser {
|
|||||||
Process hp = hpb.start();
|
Process hp = hpb.start();
|
||||||
try {
|
try {
|
||||||
boolean hev = hp.waitFor(20, TimeUnit.SECONDS);
|
boolean hev = hp.waitFor(20, TimeUnit.SECONDS);
|
||||||
|
println("Headless browser run completed, exit: " + hev);
|
||||||
if (!hev)
|
if (!hev)
|
||||||
hp.destroy();
|
hp.destroy();
|
||||||
println("Headless browser run completed, exit: " + hev);
|
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
println("Headless browser error "+e.toString());
|
println("Headless browser error "+e.toString());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user