From: David ‘Bombe’ Roden Date: Wed, 25 Nov 2015 18:12:13 +0000 (+0100) Subject: Fix “isClosed” method X-Git-Tag: v0.1.4^2~3 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c3637df3a040eca58e500fd261907f8f925db2f4;p=jFCPlib.git Fix “isClosed” method --- diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnection.java b/src/main/java/net/pterodactylus/fcp/FcpConnection.java index 0eda39d..34f47fd 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpConnection.java +++ b/src/main/java/net/pterodactylus/fcp/FcpConnection.java @@ -157,7 +157,7 @@ public class FcpConnection implements Closeable { } public synchronized boolean isClosed() { - return connectionHandler != null; + return connectionHandler == null; } //