diff --git a/src/main/java/net/schmizz/sshj/connection/channel/ChannelOutputStream.java b/src/main/java/net/schmizz/sshj/connection/channel/ChannelOutputStream.java index 489a78882..d5eb29fbc 100644 --- a/src/main/java/net/schmizz/sshj/connection/channel/ChannelOutputStream.java +++ b/src/main/java/net/schmizz/sshj/connection/channel/ChannelOutputStream.java @@ -170,15 +170,15 @@ public synchronized void close() throws IOException { } } - /** - * Allows to send the {@link Message#CHANNEL_EOF}. This can be useful for - * example to close stdin of a remote process. - * - * @throws TransportException - */ - public void sendChannelEOF() throws TransportException { - trans.write(new SSHPacket(Message.CHANNEL_EOF).putUInt32(chan.getRecipient())); - } + /** + * Allows to send the {@link Message#CHANNEL_EOF}. This can be useful for + * example to close stdin of a remote process. + * + * @throws TransportException + */ + public void sendChannelEOF() throws TransportException { + trans.write(new SSHPacket(Message.CHANNEL_EOF).putUInt32(chan.getRecipient())); + } /** * Send all data currently buffered. If window space is exhausted in the process, this will block