Author: toad
Date: 2006-11-24 23:12:44 +0000 (Fri, 24 Nov 2006)
New Revision: 11046

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
Throw a NotConnectedException so that the situation can be properly handled.

Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2006-11-24 23:12:09 UTC 
(rev 11045)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2006-11-24 23:12:44 UTC 
(rev 11046)
@@ -1222,7 +1222,7 @@
        synchronized(this) {
             if(!isConnected()) {
                 Logger.error(this, "Tried to send "+req+" but not connected to 
"+this, new Exception("debug"));
-                return;
+                throw new NotConnectedException();
             }
                }
         node.usm.send(this, req, ctr);


Reply via email to