diff --git a/gclc.system/src/main/java/net/bigeon/gclc/system/ForwardingRunnable.java b/gclc.system/src/main/java/net/bigeon/gclc/system/ForwardingRunnable.java index 96fdcdb..fd417e4 100644 --- a/gclc.system/src/main/java/net/bigeon/gclc/system/ForwardingRunnable.java +++ b/gclc.system/src/main/java/net/bigeon/gclc/system/ForwardingRunnable.java @@ -80,17 +80,18 @@ public final class ForwardingRunnable implements Runnable { public void run() { try { readToEnd(); - is.close(); } catch (final CommandRunException e) { LOGGER.log(Level.WARNING, "Manager was closed in the meantime...", e); //$NON-NLS-1$ setError(e); - } catch (final IOException e) { - LOGGER.log(Level.WARNING, "Input stream was closed...", e); //$NON-NLS-1$ - setError(e); } } /** Read the input until its end. + *

+ * This method actually perform a loop on the input stream to read the next + * character and then print int on the screen. + *

+ * When the stream returns a negative value, it will exit its loop and return. * * @throws CommandRunException if the manager was closed while writing the * stream */