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:
Hiram R. Chirino 2007-02-23 20:24:45 +00:00
parent 6916299290
commit e0a8dede18
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}