diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2018-03-19 10:43:24 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-03-19 13:48:13 +0100 |
commit | 5b1442ec1e6946ec3a3b9d8cfdd57ac1437d23ab (patch) | |
tree | 98f9423a878b433bef3d92af3d27ceb51e87441b /ucb | |
parent | 8939cb9456ee76a848cc8089747f280751092cf8 (diff) |
tdf#116489 - fix ucb TaskManager deadlock.
Change-Id: Ia362db52e7b078203964704569e1d54f053f2b57
Reviewed-on: https://gerrit.libreoffice.org/51544
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filtask.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ucb/source/ucp/file/filtask.cxx b/ucb/source/ucp/file/filtask.cxx index 7cca2f8abf16..0bbeb93675d4 100644 --- a/ucb/source/ucp/file/filtask.cxx +++ b/ucb/source/ucp/file/filtask.cxx @@ -385,7 +385,7 @@ TaskManager::endTask( sal_Int32 CommandId, const OUString& aUncPath, BaseContent* pContent) { - osl::MutexGuard aGuard( m_aMutex ); + osl::ClearableMutexGuard aGuard( m_aMutex ); TaskMap::iterator it = m_aTaskMap.find( CommandId ); if( it == m_aTaskMap.end() ) return; @@ -399,6 +399,8 @@ TaskManager::endTask( sal_Int32 CommandId, m_aTaskMap.erase( it ); + aGuard.clear(); + if( ErrorCode != TASKHANDLER_NO_ERROR ) throw_handler( ErrorCode, |