Fix race condition during shutdown.
authorcantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Fri, 2 Apr 2010 00:24:09 +0000 (00:24 +0000)
committercantor <cantor@fb386ef7-a10c-0410-8ebf-fd3f8e989ab0>
Fri, 2 Apr 2010 00:24:09 +0000 (00:24 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-opensaml2/branches/REL_2@543 fb386ef7-a10c-0410-8ebf-fd3f8e989ab0

saml/saml2/metadata/impl/XMLMetadataProvider.cpp

index be76358..5462564 100644 (file)
@@ -53,12 +53,8 @@ namespace opensaml {
                     m_object(NULL), m_maxCacheDuration(m_reloadInterval) {
             }
             virtual ~XMLMetadataProvider() {
-                if (m_lock)
-                    m_lock->wrlock();
+                shutdown();
                 delete m_object;
-                m_object = NULL;
-                if (m_lock)
-                    m_lock->unlock();
             }
 
             void init() {