summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2002-08-30 12:24:40 +0000
committerKai Sommerfeld <kso@openoffice.org>2002-08-30 12:24:40 +0000
commit46f57f4234b852dfb576b689f91779141212a66f (patch)
tree9fde079a99ebda5cda45eff07f36a0370316a982 /ucb
parent7322e33e2758b736cfe96f55fcdf82677b0b6c95 (diff)
#102795# - Fixed multithreading issue in DAVResourceAccess::initialize().
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav/DAVResourceAccess.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/ucb/source/ucp/webdav/DAVResourceAccess.cxx b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
index 9ab2ddb85627..c41501911d21 100644
--- a/ucb/source/ucp/webdav/DAVResourceAccess.cxx
+++ b/ucb/source/ucp/webdav/DAVResourceAccess.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DAVResourceAccess.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: kso $ $Date: 2002-08-29 09:00:12 $
+ * last change: $Author: kso $ $Date: 2002-08-30 13:24:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -613,29 +613,29 @@ void DAVResourceAccess::initialize()
if ( m_aPath.getLength() == 0 )
{
NeonUri aURI( m_aURL );
- m_aPath = aURI.GetPath();
- if ( !m_aPath.getLength() )
+ rtl::OUString aPath( aURI.GetPath() );
+ if ( !aPath.getLength() )
throw DAVException( DAVException::DAV_INVALID_ARG );
if ( !m_xSession.is() || !m_xSession->CanUse( m_aURL ) )
{
+ m_xSession = 0;
+
// create new webdav session
- try
- {
- m_xSession
- = m_xSessionFactory->createDAVSession( m_aURL,
- m_xSMgr );
- m_xSession->setServerAuthListener( &webdavAuthListener );
- }
- catch ( DAVException const & )
- {
- m_aPath = rtl::OUString();
- throw;
- }
+ m_xSession
+ = m_xSessionFactory->createDAVSession( m_aURL, m_xSMgr );
+
+ if ( !m_xSession.is() )
+ return;
+
+ m_xSession->setServerAuthListener( &webdavAuthListener );
}
// Own URI is needed for redirect cycle detection.
m_aRedirectURIs.push_back( aURI );
+
+ // Success.
+ m_aPath = aPath;
}
}
}