From 9ce8d8845610a398b1f96acb123967d890162fad Mon Sep 17 00:00:00 2001 From: Niki Date: Fri, 22 Mar 2019 14:24:41 +0100 Subject: [PATCH] fix java > 6 dep --- src/be/nikiroo/fanfix/reader/BasicReader.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/be/nikiroo/fanfix/reader/BasicReader.java b/src/be/nikiroo/fanfix/reader/BasicReader.java index 008e4d5b..66841892 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) { } } } -- 2.27.0