diff -r dd05c3f2fa24 -r 146b3275b792 org/sonews/daemon/Connections.java --- a/org/sonews/daemon/Connections.java Fri Dec 25 15:42:46 2009 +0100 +++ b/org/sonews/daemon/Connections.java Sun May 09 12:38:46 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() +