Permalink
Browse files

A bug resolved in the Cloud GUI

  • Loading branch information...
1 parent 08faebf commit 51abf94bfb631d6267bb584221ffeea505954ab0 @amir343 committed Jul 25, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/cloud/gui/CloudGUI.java
@@ -426,16 +426,16 @@ public synchronized void removeNodeFromCurrentInstances(Node node) {
if ( null != node) {
logger.debug("Removing " + node + " from GUI");
for (int i=0; i<model.getRowCount(); i++) {
- if ( ((String)(model.getValueAt(i, 0))).equals(node.getNodeName())
-/*
- && ((String)(model.getValueAt(i, 1))).equals(node.getIP()+":"+node.getPort())
-*/
+ if (
+/* ((String)(model.getValueAt(i, 0))).equals(node.getNodeName())*/
+ ((String)(model.getValueAt(i, 1))).equals(node.getIP()+":"+node.getPort())
) {
model.removeRow(i);
logger.debug(node + " removed!");
return;
}
}
+ logger.error("Did not find the node among the current nodes in the GUI: " + node);
} else {
logger.error("node can not be null");
}

0 comments on commit 51abf94

Please sign in to comment.