- TelnetInterface telnetInterface = new TelnetInterface(core, configuration.getTelnetPort());
- telnetInterface.start();
- eventBus.register(telnetInterface);
-
- NetworkAdapter networkAcceptor = new NetworkAdapter(eventBus, core, configuration.getTelnetPort());
+ NetworkAdapter networkAcceptor = new NetworkAdapter(eventBus, (reader, writer) -> new CommandReader(core, reader, writer, failedDownloads), configuration.getTelnetPort());