From: David ‘Bombe’ Roden Date: Wed, 15 Oct 2014 19:18:11 +0000 (+0200) Subject: Don’t start a command reader on stdin/stdout. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=20f9fec6ac04b437605e5444c810104f57db9749;p=xudocci.git Don’t start a command reader on stdin/stdout. --- diff --git a/src/main/java/net/pterodactylus/xdcc/main/Main.java b/src/main/java/net/pterodactylus/xdcc/main/Main.java index 381c6a5..5601f05 100644 --- a/src/main/java/net/pterodactylus/xdcc/main/Main.java +++ b/src/main/java/net/pterodactylus/xdcc/main/Main.java @@ -20,8 +20,6 @@ package net.pterodactylus.xdcc.main; import static com.lexicalscope.jewel.cli.CliFactory.parseArguments; import java.io.File; -import java.io.InputStreamReader; -import java.io.OutputStreamWriter; import java.util.Collection; import java.util.HashSet; import java.util.concurrent.CopyOnWriteArraySet; @@ -106,10 +104,6 @@ public class Main { Collection failedDownloads = new CopyOnWriteArraySet<>(); - CommandReader commandReader = new CommandReader(core, new InputStreamReader(System.in, "UTF-8"), new OutputStreamWriter(System.out, "UTF-8"), failedDownloads); - commandReader.start(); - eventBus.register(commandReader); - NetworkAdapter networkAcceptor = new NetworkAdapter(eventBus, (reader, writer) -> new CommandReader(core, reader, writer, failedDownloads), configuration.getTelnetPort()); networkAcceptor.start();