From: David ‘Bombe’ Roden Date: Wed, 10 Apr 2013 21:02:25 +0000 (+0200) Subject: Flush the output stream after all bytes have been read. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=490f8782562b0b7dfa53a0c8137c1c43acb8b3e4;p=xudocci.git Flush the output stream after all bytes have been read. --- diff --git a/src/main/java/net/pterodactylus/irc/DccReceiver.java b/src/main/java/net/pterodactylus/irc/DccReceiver.java index 5c5eac4..a6a55eb 100644 --- a/src/main/java/net/pterodactylus/irc/DccReceiver.java +++ b/src/main/java/net/pterodactylus/irc/DccReceiver.java @@ -159,6 +159,7 @@ public class DccReceiver extends AbstractExecutionThreadService { outputStream.write(buffer, 0, r); progress += r; } + outputStream.flush(); } catch (IOException ioe1) { logger.log(Level.WARNING, "I/O error while receiving DCC!", ioe1); } finally {