Fix “isClosed” method
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 25 Nov 2015 18:12:13 +0000 (19:12 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 25 Nov 2015 18:12:13 +0000 (19:12 +0100)
src/main/java/net/pterodactylus/fcp/FcpConnection.java

index 0eda39d..34f47fd 100644 (file)
@@ -157,7 +157,7 @@ public class FcpConnection implements Closeable {
        }
 
        public synchronized boolean isClosed() {
-               return connectionHandler != null;
+               return connectionHandler == null;
        }
 
        //