wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that)

Former-commit-id: 4d605d40b2
Former-commit-id: 34825884aadce5ea3394fadf97807c5c35f9be13
This commit is contained in:
idk
2022-09-07 11:49:21 -04:00
parent fac9329b4b
commit 09b794a9de

View File

@ -444,6 +444,7 @@ public class I2PFirefox extends I2PCommonBrowser {
println("Headless browser run completed, exit: " + hev);
if (!hev)
hp.destroy();
hev = hp.waitFor(5, TimeUnit.SECONDS);
if (hp.isAlive()) {
int forcedExitCode = hp.destroyForcibly().waitFor();
println("Headless browser run forcibly terminated, exit: " +