Removed warnings which came up with Eclipse 4.2 Juno. See Bug 1131 for more information.

This commit is contained in:
Lennart Hensler
2013-01-09 12:13:15 +01:00
parent 6a30a93e0d
commit 5ab2fe025d
12 changed files with 30 additions and 3 deletions
@@ -232,7 +232,8 @@ public class StoreAndForward implements Runnable {
public void stop() throws UnknownHostException, IOException, InterruptedException {
logger.entering(getClass().getName(), "stop");
stopped = true;
new Socket("localhost", portForClients); // this is to stop the client listener thread
Socket closer = new Socket("localhost", portForClients); // this is to stop the client listener thread
closer.close();
logger.info("joining clientListener thread "+clientListener);
clientListener.join();
socket.close(); // will let a read terminate abnormally