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:
Jonas B. Lim 2007-03-05 15:47:59 +00:00
parent 015cd8a7f9
commit 46d98e1287
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;
}