Fix wrong command name.
[jFCPlib.git] / src / net / pterodactylus / fcp / FcpMessage.java
index cac9196..96e5f65 100644 (file)
@@ -34,7 +34,6 @@ import java.util.Map.Entry;
  * data that follows the marker.
  * 
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
  */
 public class FcpMessage implements Iterable<String> {
 
@@ -171,8 +170,8 @@ public class FcpMessage implements Iterable<String> {
                outputStream.flush();
                if (payloadInputStream != null) {
                        FcpUtils.copy(payloadInputStream, outputStream);
+                       outputStream.flush();
                }
-               outputStream.flush();
        }
 
        //