Author: nextgens
Date: 2008-07-19 07:28:30 +0000 (Sat, 19 Jul 2008)
New Revision: 21228
Modified:
trunk/freenet/src/freenet/client/FECCodec.java
Log:
backport of r21227 to trunk -max(1, --blah), not min(1, --blah) svn
Modified: trunk/freenet/src/freenet/client/FECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/FECCodec.java 2008-07-18 22:11:31 UTC
(rev 21227)
+++ trunk/freenet/src/freenet/client/FECCodec.java 2008-07-19 07:28:30 UTC
(rev 21228)
@@ -457,7 +457,7 @@
public void handleLowMemory() throws Exception {
synchronized (_awaitingJobs) {
- maxRunningFECThreads = Math.min(1, maxRunningFECThreads
- 1);
+ maxRunningFECThreads = Math.max(1, maxRunningFECThreads
- 1);
_awaitingJobs.notify(); // not notifyAll()
}
}