Squelch duplicate log lines.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 6 Jan 2014 12:14:47 +0000 (13:14 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 6 Jan 2014 12:14:47 +0000 (13:14 +0100)
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. */