X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FFcpConnection.java;h=858b783b305517c9526eec51b943987ea6e75b0f;hb=b171126719c983b590c51f22eb60a3e0afdf1fb9;hp=484e7c3d0543e2a3a8c81fb0080975bcdeb3821e;hpb=f26076a082cc6a3f8d6ec20689e0dda1e2b264ef;p=jFCPlib.git
diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnection.java b/src/main/java/net/pterodactylus/fcp/FcpConnection.java
index 484e7c3..858b783 100644
--- a/src/main/java/net/pterodactylus/fcp/FcpConnection.java
+++ b/src/main/java/net/pterodactylus/fcp/FcpConnection.java
@@ -193,9 +193,10 @@ public class FcpConnection implements Closeable {
}
/**
- * Closes the connection. If there is no connection to the node, this method
- * does nothing.
+ * Closes the connection. If there is no connection to the node, this
+ * method does nothing.
*/
+ @Override
public void close() {
handleDisconnect(null);
}
@@ -323,8 +324,8 @@ public class FcpConnection implements Closeable {
* Handles a disconnect from the node.
*
* @param throwable
- * The exception that caused the disconnect, or null
- * if there was no exception
+ * The exception that caused the disconnect, or
+ * null
if there was no exception
*/
synchronized void handleDisconnect(Throwable throwable) {
FcpUtils.close(remoteInputStream);
@@ -372,8 +373,8 @@ public class FcpConnection implements Closeable {
}
/**
- * A wrapper around an {@link InputStream} that only supplies a limit number
- * of bytes from the underlying input stream.
+ * A wrapper around an {@link InputStream} that only supplies a limit
+ * number of bytes from the underlying input stream.
*
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/