Finish getNodeInformation() as soon as the information has arrived.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 19 Jul 2009 19:53:24 +0000 (21:53 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 19 Jul 2009 19:53:24 +0000 (21:53 +0200)
src/net/pterodactylus/fcp/highlevel/FcpClient.java

index 4bbcded..78a7c1f 100644 (file)
@@ -923,6 +923,7 @@ public class FcpClient {
                        @Override
                        public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData) {
                                nodeDataWrapper.set(nodeData);
+                               completionLatch.countDown();
                        }
                }.execute();
                return nodeDataWrapper.get();