Fix “isClosed” method
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / FcpConnection.java
index b191ad1..34f47fd 100644 (file)
@@ -156,6 +156,10 @@ public class FcpConnection implements Closeable {
                fcpListenerManager.removeListener(fcpListener);
        }
 
+       public synchronized boolean isClosed() {
+               return connectionHandler == null;
+       }
+
        //
        // ACTIONS
        //