Squelch duplicate log lines.
[xudocci.git] / src / main / java / net / pterodactylus / xdcc / ui / stdin / CommandReader.java
index fc1a48f..87678b5 100644 (file)
@@ -76,7 +76,7 @@ public class CommandReader extends AbstractExecutionThreadService {
         */
        public CommandReader(Core core, Reader reader, Writer writer, Collection<Download> failedDownloads) {
                this.reader = new BufferedReader(reader);
-               this.writer = writer;
+               this.writer = new DuplicateLineSuppressingWriter(writer);
                this.failedDownloads = failedDownloads;
 
                /* initialize commands. */