Notify listeners when a node was connected successfully.
[jSite2.git] / src / net / pterodactylus / jsite / core / NodeManager.java
index 6842459..3a1f68b 100644 (file)
@@ -324,6 +324,7 @@ public class NodeManager implements Iterable<Node>, PropertyChangeListener {
                try {
                        FcpClient fcpClient = new FcpClient(clientName, node.getHostname(), node.getPort());
                        fcpClient.connect();
+                       nodeListenerSupport.fireNodeConnected(node);
                } catch (UnknownHostException uhe1) {
                        nodeListenerSupport.fireNodeConnectionFailed(node, uhe1);
                } catch (IOException ioe1) {