summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cmscore/dbs/KeyRepository.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/cmscore/dbs/KeyRepository.java')
-rw-r--r--base/common/src/com/netscape/cmscore/dbs/KeyRepository.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/cmscore/dbs/KeyRepository.java b/base/common/src/com/netscape/cmscore/dbs/KeyRepository.java
index 0fbff688a..fb3b9b24a 100644
--- a/base/common/src/com/netscape/cmscore/dbs/KeyRepository.java
+++ b/base/common/src/com/netscape/cmscore/dbs/KeyRepository.java
@@ -154,8 +154,9 @@ public class KeyRepository extends Repository implements IKeyRepository {
public void setKeyStatusUpdateInterval(IRepository requestRepo, int interval) {
CMS.debug("In setKeyStatusUpdateInterval " + interval);
-
- this.requestRepository = requestRepo;
+ synchronized (this) {
+ this.requestRepository = requestRepo;
+ }
// stop running task
if (mKeyStatusUpdateTask != null) {