activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r514701 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java
Date Mon, 05 Mar 2007 15:48:00 GMT
Author: jlim
Date: Mon Mar  5 07:47:59 2007
New Revision: 514701

URL: http://svn.apache.org/viewvc?view=rev&rev=514701
Log:
ported fix to trunk : 
http://issues.apache.org/activemq/browse/AMQ-1173

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java?view=diff&rev=514701&r1=514700&r2=514701
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/discovery/multicast/MulticastDiscoveryAgent.java
Mon Mar  5 07:47:59 2007
@@ -291,7 +291,7 @@
     private void doTimeKeepingServices(){
         if(started.get()){
             long currentTime=System.currentTimeMillis();
-            if((currentTime-keepAliveInterval)>lastAdvertizeTime){
+            if (currentTime < lastAdvertizeTime || ((currentTime-keepAliveInterval)>lastAdvertizeTime))
{
                 doAdvertizeSelf();
                 lastAdvertizeTime = currentTime;
             }



Mime
View raw message