1.1 --- a/org/sonews/daemon/Connections.java Tue Apr 27 22:11:30 2010 +0200
1.2 +++ b/org/sonews/daemon/Connections.java Sat May 01 14:27:30 2010 +0200
1.3 @@ -20,6 +20,7 @@
1.4
1.5 import org.sonews.config.Config;
1.6 import org.sonews.util.Log;
1.7 +import org.sonews.util.Stats;
1.8 import java.io.IOException;
1.9 import java.net.InetSocketAddress;
1.10 import java.net.Socket;
1.11 @@ -29,7 +30,6 @@
1.12 import java.util.List;
1.13 import java.util.ListIterator;
1.14 import java.util.Map;
1.15 -import org.sonews.util.Stats;
1.16
1.17 /**
1.18 * Daemon thread collecting all NNTPConnection instances. The thread
1.19 @@ -146,6 +146,9 @@
1.20
1.21 try
1.22 {
1.23 + assert channel != null;
1.24 + assert channel.socket() != null;
1.25 +
1.26 // Close the channel; implicitely cancels all selectionkeys
1.27 channel.close();
1.28 Log.get().info("Disconnected: " + channel.socket().getRemoteSocketAddress() +