We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 819ffef commit 6fe428cCopy full SHA for 6fe428c
src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java
@@ -534,11 +534,11 @@ private static List<String> collectProcessOutput(Process p)
534
throws IOException, InterruptedException
535
{
536
boolean completed = p.waitFor(5, TimeUnit.SECONDS);
537
- p.exitValue();
538
if (!completed) {
539
p.destroyForcibly();
540
throw new IOException("Process took too long to complete.");
541
}
+ p.exitValue();
542
try (BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()))) {
543
return reader.lines().collect(Collectors.toList());
544
0 commit comments