Author: toad
Date: 2007-09-15 19:44:20 +0000 (Sat, 15 Sep 2007)
New Revision: 15198

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
   trunk/freenet/src/freenet/node/Node.java
Log:
No new connections once committed to node shutdown

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-09-15 
19:29:14 UTC (rev 15197)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-09-15 
19:44:20 UTC (rev 15198)
@@ -155,6 +155,7 @@
                 }
             }
         }
+        if(node.isStopping()) return;
         if(length > Node.SYMMETRIC_KEY_LENGTH /* iv */ + HASH_LENGTH + 2) {
             for(int i=0;i<peers.length;i++) {
                 pn = peers[i];

Modified: trunk/freenet/src/freenet/node/Node.java
===================================================================
--- trunk/freenet/src/freenet/node/Node.java    2007-09-15 19:29:14 UTC (rev 
15197)
+++ trunk/freenet/src/freenet/node/Node.java    2007-09-15 19:44:20 UTC (rev 
15198)
@@ -2272,6 +2272,10 @@
                }
        }

+       public synchronized boolean isStopping() {
+               return isStopping;
+       }
+       
        /**
         * Get the node into a state where it can be stopped safely
         * May be called twice - once in exit (above) and then again


Reply via email to