Don’t start a command reader on stdin/stdout.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Oct 2014 19:18:11 +0000 (21:18 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Oct 2014 19:18:11 +0000 (21:18 +0200)
src/main/java/net/pterodactylus/xdcc/main/Main.java

index 381c6a5..5601f05 100644 (file)
@@ -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<Download> 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();