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

fdorson
03.30.2008 c3b3c95ffb78611020b1affce1db4bcf326896db
opends/src/server/org/opends/server/replication/plugin/ReplicationDomain.java
@@ -2248,12 +2248,14 @@
    disabled = true;
    // Stop the listener thread
    listenerThread.shutdown();
    if (listenerThread != null)
      listenerThread.shutdown();
    broker.stop(); // This will cut the session and wake up the listener
    // Wait for the listener thread to stop
    listenerThread.waitForShutdown();
    if (listenerThread != null)
      listenerThread.waitForShutdown();
  }
  /**
@@ -3465,6 +3467,12 @@
                        maxSendQueue, maxSendDelay, window, heartbeatInterval);
    isolationpolicy = configuration.getIsolationPolicy();
    // To be able to stop and restart the broker properly just
    // disable and enable the domain. That way a new session
    // with the new configuration is available.
    this.disable();
    this.enable();
    return new ConfigChangeResult(ResultCode.SUCCESS, false);
  }