From f4e5dd5462cbb9e44347d9bbf06e9b90ad353191 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 20 Apr 2009 14:44:30 +0000
Subject: [PATCH] Fix issue 3179: Thread left in the system after shutdown is called.
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index f07e184..c5572fb 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -1327,6 +1327,10 @@
}
+ // Ensure that the timer thread has started.
+ TimeThread.start();
+
+
// Mark the current time as the start time.
startUpTime = System.currentTimeMillis();
startTimeUTC = TimeThread.getGMTTime();
@@ -8413,6 +8417,9 @@
removeAllErrorLogPublishers();
removeAllDebugLogPublishers();
+ // Now that the loggers are disabled we can shutdown the timer.
+ TimeThread.stop();
+
// Just in case there's something that isn't shut down properly, wait for
// the monitor to give the OK to stop.
shutdownMonitor.waitForMonitor();
--
Gitblit v1.10.0