r26613 - trunk/freenet/src/freenet/node

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: j16sdiz
Date: 2009-04-07 15:59:46 +0000 (Tue, 07 Apr 2009)
New Revision: 26613

Modified:
   trunk/freenet/src/freenet/node/PacketSender.java
Log:
Move logging from synchronized{}

Modified: trunk/freenet/src/freenet/node/PacketSender.java
===================================================================
--- trunk/freenet/src/freenet/node/PacketSender.java	2009-04-07 15:53:46 UTC (rev 26612)
+++ trunk/freenet/src/freenet/node/PacketSender.java	2009-04-07 15:59:46 UTC (rev 26613)
@@ -428,9 +428,9 @@
 		if(sleepTime > 0) {
 			// Update logging only when have time to do so
 			try {
+				if(logMINOR)
+					Logger.minor(this, "Sleeping for " + sleepTime);
 				synchronized(this) {
-					if(logMINOR)
-						Logger.minor(this, "Sleeping for " + sleepTime);
 					wait(sleepTime);
 				}
 			} catch(InterruptedException e) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.