Count down latch after the NodeHello response has been stored.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 27 Nov 2009 13:37:14 +0000 (14:37 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 27 Nov 2009 13:37:14 +0000 (14:37 +0100)
src/main/java/net/pterodactylus/fcp/highlevel/FcpClient.java

index 5bf4e1a..a7ccd3e 100644 (file)
@@ -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();
        }