X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fui%2Fstdin%2FCommandReader.java;h=87678b5a613f7a6a56b7d53f259cd99299779043;hb=a488ccc7436f131efaf51e81f003f9a4862d1a74;hp=fc1a48fefa6e3930d140f736a541af4ded911045;hpb=6e50defe7a95a4658bc0ce68eab5ca79361552d5;p=xudocci.git diff --git a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java index fc1a48f..87678b5 100644 --- a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java +++ b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java @@ -76,7 +76,7 @@ public class CommandReader extends AbstractExecutionThreadService { */ public CommandReader(Core core, Reader reader, Writer writer, Collection failedDownloads) { this.reader = new BufferedReader(reader); - this.writer = writer; + this.writer = new DuplicateLineSuppressingWriter(writer); this.failedDownloads = failedDownloads; /* initialize commands. */