Merge branch 'master' of mojotrollz.eu:college

Conflicts:
	ws2012/P2P/uebungen/4/src/peer/Node.java
This commit is contained in:
senft-lap 2012-11-20 15:08:17 +01:00
commit 57e66c347e

View File

@ -212,7 +212,7 @@ public class Node {
break;
case MessageType.LEAVE:
LOGGER.info(receivedFrom.toString()
LOGGER.info(name + ": " + receivedFrom.toString()
+ " is leaving. Deleting...");
neighbors.remove(receivedFrom);
break;
@ -273,6 +273,7 @@ public class Node {
+ " received unknown command from "
+ receivedFrom.toString() + ": "
+ new String(buf.array()));
}
} else {
try {
@ -285,7 +286,6 @@ public class Node {
} catch (IOException e) {
e.printStackTrace();
}
}
}