From: David ‘Bombe’ Roden Date: Mon, 27 Jan 2014 05:27:27 +0000 (+0100) Subject: Reset line suppression when a command is received. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=578a4b479dfc9ba6342ef2dc366459043b4dbac0;p=xudocci.git Reset line suppression when a command is received. --- 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 e9bcc3c..016c9d0 100644 --- a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java +++ b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java @@ -63,7 +63,7 @@ public class CommandReader extends AbstractExecutionThreadService { private final BufferedReader reader; /** The writer to write the results to. */ - private final Writer writer; + private final DuplicateLineSuppressingWriter writer; private final Collection failedDownloads; /** @@ -110,6 +110,7 @@ public class CommandReader extends AbstractExecutionThreadService { if (line.equals("")) { line = lastLine; } + writer.reset(); String[] words = line.split(" +"); String commandName = words[0]; Collection eligibleCommands = findEligibleCommands(commandName);