Author: nextgens
Date: 2008-01-27 20:33:45 +0000 (Sun, 27 Jan 2008)
New Revision: 17326
Modified:
trunk/freenet/src/freenet/node/fcp/FCPConnectionOutputHandler.java
Log:
really fix #2019: Socket dies if first message is not ClientHello
Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionOutputHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionOutputHandler.java
2008-01-27 19:49:59 UTC (rev 17325)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionOutputHandler.java
2008-01-27 20:33:45 UTC (rev 17326)
@@ -90,6 +90,11 @@
synchronized(outQueue) {
outQueue.notifyAll();
}
+ while(!outQueue.isEmpty()) {
+ try {
+ Thread.sleep(100);
+ } catch (InterruptedException e) {}
+ }
}
}