From 490f8782562b0b7dfa53a0c8137c1c43acb8b3e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 10 Apr 2013 23:02:25 +0200 Subject: [PATCH] Flush the output stream after all bytes have been read. --- src/main/java/net/pterodactylus/irc/DccReceiver.java | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.7.4