1
0
mirror of synced 2026-07-06 16:40:01 +00:00

fix: java main process will be suspended when browsers installation timed out (#180)

This commit is contained in:
codeboyzhou
2021-01-05 02:56:57 +08:00
committed by GitHub
parent 2ce8321178
commit e51bb075e7
@@ -45,6 +45,7 @@ public class DriverJar extends Driver {
Process p = pb.start();
boolean result = p.waitFor(10, TimeUnit.MINUTES);
if (!result) {
p.destroy();
throw new RuntimeException("Timed out waiting for browsers to install");
}
}