don't forget to connect first, duh!
[jFCPlib.git] / 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);