Author: robert
Date: 2007-12-04 00:57:50 +0000 (Tue, 04 Dec 2007)
New Revision: 16252

Modified:
   trunk/freenet/src/freenet/node/PeerNode.java
Log:
Remove unneccesary log statement


Modified: trunk/freenet/src/freenet/node/PeerNode.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerNode.java        2007-12-03 23:56:46 UTC 
(rev 16251)
+++ trunk/freenet/src/freenet/node/PeerNode.java        2007-12-04 00:57:50 UTC 
(rev 16252)
@@ -872,11 +872,8 @@
        public void sendAsync(Message msg, AsyncMessageCallback cb, int 
alreadyReportedBytes, ByteCounter ctr) throws NotConnectedException {
                if(logMINOR)
                        Logger.minor(this, "Sending async: " + msg + " : " + cb 
+ " on " + this);
-               if(!isConnected()) {
-            if (cb instanceof SyncMessageCallback)
-                Logger.error(this, "Tried to send " + msg + " but not 
connected to " + this, new Exception("debug"));
+               if(!isConnected())
                        throw new NotConnectedException();
-        }
                addToLocalNodeSentMessagesToStatistic(msg);
                MessageItem item = new MessageItem(msg, cb == null ? null : new 
AsyncMessageCallback[]{cb}, alreadyReportedBytes, ctr);
                item.getData(this);


Reply via email to