Reconnect when connection fails
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / FcpConnection.java
index 66377a2..cc13d4a 100644 (file)
@@ -132,6 +132,10 @@ public class FcpConnection implements Closeable {
                this.port = port;
        }
 
+       public synchronized boolean isClosed() {
+               return connectionHandler == null;
+       }
+
        //
        // LISTENER MANAGEMENT
        //