From: David ‘Bombe’ Roden Date: Fri, 22 May 2009 05:23:48 +0000 (+0200) Subject: Remove client from node-to-client map on disconnect. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=61846a0aae33cb4d93534f3f7c96e7828bb84a4a;p=jSite2.git Remove client from node-to-client map on disconnect. --- diff --git a/src/net/pterodactylus/jsite/core/NodeManager.java b/src/net/pterodactylus/jsite/core/NodeManager.java index 7fd4cc9..a73a563 100644 --- a/src/net/pterodactylus/jsite/core/NodeManager.java +++ b/src/net/pterodactylus/jsite/core/NodeManager.java @@ -347,7 +347,7 @@ 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); + FcpClient fcpClient = nodeClients.remove(node); if (fcpClient == null) { logger.log(Level.WARNING, "No FCP client for node (" + node + ")!"); return;