mirror of https://github.com/apache/activemq.git
ported fix to trunk :
http://issues.apache.org/activemq/browse/AMQ-1173 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@514701 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
015cd8a7f9
commit
46d98e1287
|
@ -291,7 +291,7 @@ public class MulticastDiscoveryAgent implements DiscoveryAgent,Runnable{
|
||||||
private void doTimeKeepingServices(){
|
private void doTimeKeepingServices(){
|
||||||
if(started.get()){
|
if(started.get()){
|
||||||
long currentTime=System.currentTimeMillis();
|
long currentTime=System.currentTimeMillis();
|
||||||
if((currentTime-keepAliveInterval)>lastAdvertizeTime){
|
if (currentTime < lastAdvertizeTime || ((currentTime-keepAliveInterval)>lastAdvertizeTime)) {
|
||||||
doAdvertizeSelf();
|
doAdvertizeSelf();
|
||||||
lastAdvertizeTime = currentTime;
|
lastAdvertizeTime = currentTime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue