don't forget to connect first, duh!
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 4 May 2008 14:49:05 +0000 (14:49 +0000)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sun, 4 May 2008 14:49:05 +0000 (14:49 +0000)
git-svn-id: http://trooper/svn/projects/jFCPlib/branch/high-level-client@850 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/fcp/highlevel/HighLevelClient.java

index 9fd36fd..5032eef 100644 (file)
@@ -272,6 +272,7 @@ public class HighLevelClient {
        public HighLevelCallback<ConnectResult> connect() throws IOException {
                fcpConnection = new FcpConnection(address, port);
                fcpConnection.addFcpListener(highLevelClientFcpListener);
+               fcpConnection.connect();
                ClientHello clientHello = new ClientHello(clientName);
                connectCallback = new HighLevelCallback<ConnectResult>(new ConnectResult());
                fcpConnection.sendMessage(clientHello);