X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2Fhighlevel%2FFcpClient.java;h=c1591578ec5e8960225f35a96d40269bd52b903d;hb=886f3619d16f744e55f9f1e1c68fb95d5ee1235b;hp=5bf4e1a3a57b33b514b809c810cfc3a9041aaa82;hpb=2d2cb653da15b89e3161f5026c4778e08a8bff0a;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java index 5bf4e1a..c159157 100644 --- a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -234,6 +234,15 @@ public class FcpClient { return nodeHello; } + /** + * Returns the underlying FCP connection. + * + * @return The underlying FCP connection + */ + public FcpConnection getConnection() { + return fcpConnection; + } + // // ACTIONS // @@ -270,8 +279,8 @@ public class FcpClient { @Override @SuppressWarnings("synthetic-access") public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) { - completionLatch.countDown(); FcpClient.this.nodeHello = nodeHello; + completionLatch.countDown(); } }.execute(); }