From: David ‘Bombe’ Roden Date: Wed, 25 Nov 2015 06:46:25 +0000 (+0100) Subject: Expose whether an FCP connection is closed X-Git-Tag: v0.1.4^2~4 X-Git-Url: https://git.pterodactylus.net/?p=jFCPlib.git;a=commitdiff_plain;h=064ea7223eef47bdcef90d2c63f91620171fc955 Expose whether an FCP connection is closed --- diff --git a/src/main/java/net/pterodactylus/fcp/FcpConnection.java b/src/main/java/net/pterodactylus/fcp/FcpConnection.java index b191ad1..0eda39d 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpConnection.java +++ b/src/main/java/net/pterodactylus/fcp/FcpConnection.java @@ -156,6 +156,10 @@ public class FcpConnection implements Closeable { fcpListenerManager.removeListener(fcpListener); } + public synchronized boolean isClosed() { + return connectionHandler != null; + } + // // ACTIONS //