summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 757eba8c24c7..022104934d8c 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -1129,7 +1129,10 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell,
if( bMT_EMAIL )
{
// Reset internal mail accounting data
- m_pImpl->m_xLastMessage.clear();
+ {
+ std::unique_lock aGuard(m_pImpl->m_aAllEmailSendMutex);
+ m_pImpl->m_xLastMessage.clear();
+ }
xMailDispatcher.set( new MailDispatcher(rMergeDescriptor.xSmtpServer) );
xMailListener = new MailDispatcherListener_Impl( *this );