diff -r d879bab39600 -r 15d14b110240 org/sonews/daemon/Connections.java --- a/org/sonews/daemon/Connections.java Tue Apr 27 22:11:30 2010 +0200 +++ b/org/sonews/daemon/Connections.java Sat May 01 14:27:30 2010 +0200 @@ -20,6 +20,7 @@ import org.sonews.config.Config; import org.sonews.util.Log; +import org.sonews.util.Stats; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; @@ -29,7 +30,6 @@ import java.util.List; import java.util.ListIterator; import java.util.Map; -import org.sonews.util.Stats; /** * Daemon thread collecting all NNTPConnection instances. The thread @@ -146,6 +146,9 @@ try { + assert channel != null; + assert channel.socket() != null; + // Close the channel; implicitely cancels all selectionkeys channel.close(); Log.get().info("Disconnected: " + channel.socket().getRemoteSocketAddress() +