mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
13.26.2008 9f0dae3d08ca0cf7c131af2f1fc09670ace301fa
opends/src/server/org/opends/server/replication/protocol/HeartbeatThread.java
@@ -68,6 +68,7 @@
   * Set this to stop the thread.
   */
  private Boolean shutdown = false;
  private final Object shutdown_lock = new Object();
  /**
@@ -135,11 +136,11 @@
            TRACER.debugVerbose("Heartbeat thread sleeping for %d", sleepTime);
          }
          synchronized (shutdown)
          synchronized (shutdown_lock)
          {
            if (!shutdown)
            {
              shutdown.wait(sleepTime);
              shutdown_lock.wait(sleepTime);
            }
          }
        }
@@ -173,10 +174,10 @@
   */
  public void shutdown()
  {
    synchronized (shutdown)
    synchronized (shutdown_lock)
    {
      shutdown.notifyAll();
      shutdown = true;
      shutdown_lock.notifyAll();
      if (debugEnabled())
      {
        TRACER.debugInfo("Going to notify Heartbeat thread.");