From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2013 05:33:19 +0000 (+0200) Subject: Store download-related stuff in the download. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=62ad445a77db1ba967389953ebd660c2a48994d6;p=xudocci.git Store download-related stuff in the download. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 0c66644..578e86d 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -360,6 +360,7 @@ public class Core extends AbstractIdleService { File outputFile = new File(temporaryDirectory, dccSendReceived.filename()); OutputStream fileOutputStream = new FileOutputStream(outputFile); DccReceiver dccReceiver = new DccReceiver(eventBus, dccSendReceived.inetAddress(), dccSendReceived.port(), dccSendReceived.filename(), dccSendReceived.filesize(), fileOutputStream); + download.filename(outputFile.getPath()).outputStream(fileOutputStream).dccReceiver(dccReceiver); dccReceivers.add(dccReceiver); dccReceiver.start(); } catch (FileNotFoundException fnfe1) {