Notify listeners when a node was connected successfully.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 May 2009 05:00:14 +0000 (07:00 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 May 2009 05:00:14 +0000 (07:00 +0200)
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) {