Fix race condition during shutdown.
authorScott Cantor <cantor.2@osu.edu>
Fri, 2 Apr 2010 00:24:09 +0000 (00:24 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 2 Apr 2010 00:24:09 +0000 (00:24 +0000)
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() {