From: Niki Date: Fri, 22 Mar 2019 13:24:41 +0000 (+0100) Subject: fix java > 6 dep X-Git-Tag: fanfix-2.0.0~15 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=9ce8d8845610a398b1f96acb123967d890162fad;p=fanfix.git fix java > 6 dep --- diff --git a/src/be/nikiroo/fanfix/reader/BasicReader.java b/src/be/nikiroo/fanfix/reader/BasicReader.java index 008e4d5..6684189 100644 --- a/src/be/nikiroo/fanfix/reader/BasicReader.java +++ b/src/be/nikiroo/fanfix/reader/BasicReader.java @@ -340,11 +340,9 @@ public abstract class BasicReader implements Reader { } if (proc != null && sync) { - while (proc.isAlive()) { - try { - Thread.sleep(100); - } catch (InterruptedException e) { - } + try { + proc.waitFor(); + } catch (InterruptedException e) { } } }