From 06d151396a67e242dee58da25829f8b39eb87ef6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 22 May 2009 07:06:45 +0200 Subject: [PATCH] Add node disconnection. --- src/net/pterodactylus/jsite/core/NodeManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/net/pterodactylus/jsite/core/NodeManager.java b/src/net/pterodactylus/jsite/core/NodeManager.java index e8fd278..2ab728f 100644 --- a/src/net/pterodactylus/jsite/core/NodeManager.java +++ b/src/net/pterodactylus/jsite/core/NodeManager.java @@ -347,6 +347,13 @@ public class NodeManager implements Iterable, PropertyChangeListener { logger.log(Level.WARNING, "Was told to disconnect from a node (" + node + ") I don’t know about!"); return; } + FcpClient fcpClient = nodeClients.get(node); + if (fcpClient == null) { + logger.log(Level.WARNING, "No FCP client for node (" + node + ")!"); + return; + } + fcpClient.disconnect(); + nodeListenerSupport.fireNodeDisconnected(node, null); } /** -- 2.7.4