mirror of https://github.com/apache/activemq.git
r242@34: chirino | 2007-02-23 14:49:14 -0500
Continue to send heart beats even if the machine time is falky. Like time going backwards. git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-4.1@511086 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6916299290
commit
e0a8dede18
|
@ -291,7 +291,7 @@ public class MulticastDiscoveryAgent implements DiscoveryAgent,Runnable{
|
|||
private void doTimeKeepingServices(){
|
||||
if(started.get()){
|
||||
long currentTime=System.currentTimeMillis();
|
||||
if((currentTime-keepAliveInterval)>lastAdvertizeTime){
|
||||
if (currentTime < lastAdvertizeTime || ((currentTime-keepAliveInterval)>lastAdvertizeTime)) {
|
||||
doAdvertizeSelf();
|
||||
lastAdvertizeTime = currentTime;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue