summaryrefslogtreecommitdiffstats
path: root/base/kra/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'base/kra/src/com')
-rw-r--r--base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java b/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java
index 4ba69ef9c..54cf2a0c6 100644
--- a/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java
+++ b/base/kra/src/com/netscape/kra/KeyRecoveryAuthority.java
@@ -456,14 +456,21 @@ public class KeyRecoveryAuthority implements IAuthority, IKeyService, IKeyRecove
if (!mInitialized)
return;
- mTransportKeyUnit.shutdown();
- mStorageKeyUnit.shutdown();
+ if (mTransportKeyUnit != null) {
+ mTransportKeyUnit.shutdown();
+ }
+
+ if (mStorageKeyUnit != null) {
+ mStorageKeyUnit.shutdown();
+ }
+
if (mKeyDB != null) {
mKeyDB.shutdown();
- mKeyDB = null;
}
+
getLogger().log(ILogger.EV_SYSTEM, ILogger.S_KRA,
ILogger.LL_INFO, mName.toString() + " is stopped");
+
mInitialized = false;
}