[freenet-cvs] r13081 - trunk/apps/new_installer/src

nextgens at freenetproject.org nextgens at freenetproject.org
Tue May 1 15:29:42 UTC 2007


Author: nextgens
Date: 2007-05-01 15:29:42 +0000 (Tue, 01 May 2007)
New Revision: 13081

Modified:
   trunk/apps/new_installer/src/BindTest.java
Log:
new_installer: the fix for #1329 breaks on windows :< ... YetANewWorkaround, part 2

Modified: trunk/apps/new_installer/src/BindTest.java
===================================================================
--- trunk/apps/new_installer/src/BindTest.java	2007-05-01 14:53:49 UTC (rev 13080)
+++ trunk/apps/new_installer/src/BindTest.java	2007-05-01 15:29:42 UTC (rev 13081)
@@ -20,12 +20,12 @@
 			else {
 				ss = new ServerSocket();
 				ss.setReuseAddress(false);
+				ss.bind(new InetSocketAddress("127.0.0.1:", port.intValue()));
+				if(!ss.isBound())
+					System.exit(1);
 			}
 
 			ss.setSoTimeout(200);
-			ss.bind(new InetSocketAddress("127.0.0.1:", port.intValue()));
-			if(!ss.isBound())
-				System.exit(1);
 			ss.accept();
 		}catch (SocketTimeoutException ste){
 		}catch (SocketException e){




More information about the cvs mailing list