From a488ccc7436f131efaf51e81f003f9a4862d1a74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 6 Jan 2014 13:14:47 +0100 Subject: [PATCH] Squelch duplicate log lines. --- src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.7.4