From: <th...@us...> - 2011-03-18 18:41:49
|
Revision: 2006 http://azsmrc.svn.sourceforge.net/azsmrc/?rev=2006&view=rev Author: the8472 Date: 2011-03-18 18:41:43 +0000 (Fri, 18 Mar 2011) Log Message: ----------- wrong initialisation order Modified Paths: -------------- mldht/trunk/DHTIndexer.jar mldht/trunk/lbms/plugins/mldht/kad/RPCServer.java Modified: mldht/trunk/DHTIndexer.jar =================================================================== (Binary files differ) Modified: mldht/trunk/lbms/plugins/mldht/kad/RPCServer.java =================================================================== --- mldht/trunk/lbms/plugins/mldht/kad/RPCServer.java 2011-03-18 18:19:47 UTC (rev 2005) +++ mldht/trunk/lbms/plugins/mldht/kad/RPCServer.java 2011-03-18 18:41:43 UTC (rev 2006) @@ -442,11 +442,13 @@ private class SocketHandler implements Selectable { DatagramChannel channel; + AtomicInteger selection; { try { timeoutFilter.reset(); + selection = new AtomicInteger(); channel = DatagramChannel.open(); channel.configureBlocking(false); @@ -553,8 +555,8 @@ updateSelection(); } - AtomicInteger selection = new AtomicInteger(); + public void updateSelection() { while(true) { int currentSel = selection.get(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |