Author: nextgens
Date: 2007-03-19 20:02:48 +0000 (Mon, 19 Mar 2007)
New Revision: 12223
Modified:
trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
Log:
As toad pointed out, locking on "this" isn't sensible here
Modified: trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java
===================================================================
--- trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java 2007-03-19
19:55:06 UTC (rev 12222)
+++ trunk/freenet/src/freenet/io/xfer/BlockTransmitter.java 2007-03-19
20:02:48 UTC (rev 12223)
@@ -212,9 +212,7 @@
if (_prb.isAborted()) {
synchronized(_senderThread) {
_sendComplete = true;
- synchronized (this) {
-
_senderThread.notifyAll();
- }
+ _senderThread.notifyAll();
}
return false;
}