diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2012-06-27 14:27:55 -0400 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-07-02 12:43:57 -0500 |
commit | 10502e34a10fb3b672aef1161cc271003c7806ba (patch) | |
tree | 4c3c5e8fc8c99759953b52518f78e8ba3100aa17 /base/common/src/com/netscape/certsrv | |
parent | d2b06ee1f9fcc42be83f04f64559cfa6317bda67 (diff) | |
download | pki-10502e34a10fb3b672aef1161cc271003c7806ba.tar.gz pki-10502e34a10fb3b672aef1161cc271003c7806ba.tar.xz pki-10502e34a10fb3b672aef1161cc271003c7806ba.zip |
Fixes for Guarded_By_Violation issues shown in Coverity
Diffstat (limited to 'base/common/src/com/netscape/certsrv')
-rw-r--r-- | base/common/src/com/netscape/certsrv/request/ARequestNotifier.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/common/src/com/netscape/certsrv/request/ARequestNotifier.java b/base/common/src/com/netscape/certsrv/request/ARequestNotifier.java index f8f7588a7..4a6e3260b 100644 --- a/base/common/src/com/netscape/certsrv/request/ARequestNotifier.java +++ b/base/common/src/com/netscape/certsrv/request/ARequestNotifier.java @@ -459,7 +459,9 @@ public class ARequestNotifier implements IRequestNotifier { CMS.debug("recoverPublishingQueue extended buffer to " + mRequests.size() + "(" + mMaxRequests + ")" + " requests by adding request " + id); if (morePublishingThreads()) { - mSearchForRequests = true; + synchronized (this) { + mSearchForRequests = true; + } try { Thread notifierThread = new Thread(new RunListeners(this)); if (notifierThread != null) { |