From: David ‘Bombe’ Roden Date: Sun, 19 Jul 2009 19:53:24 +0000 (+0200) Subject: Finish getNodeInformation() as soon as the information has arrived. X-Git-Tag: v0.1.1~24 X-Git-Url: https://git.pterodactylus.net/?p=jFCPlib.git;a=commitdiff_plain;h=1b240fc2b238ac15b0e20e5b2828bb1fecbfa31a Finish getNodeInformation() as soon as the information has arrived. --- diff --git a/src/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/net/pterodactylus/fcp/highlevel/FcpClient.java index 4bbcded..78a7c1f 100644 --- a/src/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -923,6 +923,7 @@ public class FcpClient { @Override public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) { nodeDataWrapper.set(nodeData); + completionLatch.countDown(); } }.execute(); return nodeDataWrapper.get();