@Override
public State execute(State state, List<String> parameters, Writer outputWriter) throws IOException {
int counter = 0;
- List<Download> downloads = newArrayList(from(core.downloads()).toSortedList(Ordering.from(BY_NAME).compound(BY_RUNNING)));
+ List<Download> downloads = newArrayList(from(core.downloads()).toSortedList(Ordering.from(BY_RUNNING).compound(BY_NAME)));
for (Download download : downloads) {
DccReceiver dccReceiver = download.dccReceiver();
if (dccReceiver == null) {
outputWriter.write(")\n");
}
outputWriter.write("End of DCCs.\n");
- outputWriter.flush();
return state.setLastDownloads(downloads);
}