From 960c723062d160be95e526ac24b7a664e0ac217e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 27 Nov 2009 14:37:14 +0100 Subject: [PATCH] Count down latch after the NodeHello response has been stored. --- src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.7.4