Remove client from node-to-client map on disconnect.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 May 2009 05:23:48 +0000 (07:23 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 May 2009 05:23:48 +0000 (07:23 +0200)
src/net/pterodactylus/jsite/core/NodeManager.java

index 7fd4cc9..a73a563 100644 (file)
@@ -347,7 +347,7 @@ public class NodeManager implements Iterable<Node>, 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;