From: David ‘Bombe’ Roden Date: Fri, 27 Nov 2009 13:37:14 +0000 (+0100) Subject: Count down latch after the NodeHello response has been stored. X-Git-Tag: v0.1.2.2~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=960c723062d160be95e526ac24b7a664e0ac217e;p=jFCPlib.git Count down latch after the NodeHello response has been stored. --- diff --git a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java index 5bf4e1a..a7ccd3e 100644 --- a/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -270,8 +270,8 @@ public class FcpClient { @Override @SuppressWarnings("synthetic-access") public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) { - completionLatch.countDown(); FcpClient.this.nodeHello = nodeHello; + completionLatch.countDown(); } }.execute(); }