X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fui%2Fstdin%2FCommandReader.java;h=66447b06d9b628a940532f3fe84d31493c41bfcd;hb=5e7f77e44cacc40da04ac9f744566de0710b12a1;hp=016c9d0be90895637ab8ab68ec0f94fdae9ce6e7;hpb=578a4b479dfc9ba6342ef2dc366459043b4dbac0;p=xudocci.git 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 016c9d0..66447b0 100644 --- a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java +++ b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java @@ -93,6 +93,7 @@ public class CommandReader extends AbstractExecutionThreadService { commandBuilder.add(new FailedDownloadsCommand(failedDownloads)); commandBuilder.add(new RestartCommand(core, failedDownloads)); commandBuilder.add(new ResearchCommand(core)); + commandBuilder.add(new UptimeCommand(core)); commands = commandBuilder.build(); } @@ -122,6 +123,7 @@ public class CommandReader extends AbstractExecutionThreadService { Command command = eligibleCommands.iterator().next(); List parameters = from(asList(words)).skip(1).toList(); state = command.execute(state, parameters, writer); + writer.flush(); } lastLine = line;