CVS update: JGroups/src/org/jgroups/protocols/pbcast FLUSH.java

"Bela Ban" <[email protected]> Fri, 24 Sep 2010 04:24:35 +0000
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/09/24 04:24:35

  Modified:    src/org/jgroups/protocols/pbcast FLUSH.java
  Log:
  Fixed spurious FLUSH warning (https://jira.jboss.org/browse/JGRP-1239)
  
  Revision  Changes    Path
  1.151     +2 -2      JGroups/src/org/jgroups/protocols/pbcast/FLUSH.java
  
  Index: FLUSH.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/protocols/pbcast/FLUSH.java,v
  retrieving revision 1.150
  retrieving revision 1.151
  diff -u -r1.150 -r1.151
  --- FLUSH.java	15 Jun 2010 06:44:37 -0000	1.150
  +++ FLUSH.java	24 Sep 2010 04:24:35 -0000	1.151
  @@ -318,7 +318,7 @@
               while (isBlockingFlushDown) {
                   if (log.isDebugEnabled())
                       log.debug(localAddress + ": blocking for " + (timeout <= 0 ? "ever" : timeout + "ms"));
  -                    shouldSuspendByItself = notBlockedDown.await(timeout, TimeUnit.MILLISECONDS);
  +                shouldSuspendByItself = !notBlockedDown.await(timeout, TimeUnit.MILLISECONDS);
               }
               if (shouldSuspendByItself) {
                   isBlockingFlushDown = false;      
  @@ -327,7 +327,7 @@
                   notBlockedDown.signalAll();
               }            
           } catch (InterruptedException e) {
  -           Thread.currentThread().interrupt();
  +            Thread.currentThread().interrupt();
           } finally {
               blockMutex.unlock();
           }        
  
  
  

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev