summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/app/app.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index b37820578355..5ca7e7042ba2 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1596,7 +1596,6 @@ int Desktop::Main()
::comphelper::getProcessServiceFactory();
Reference< ::com::sun::star::task::XRestartManager > xRestartManager;
- int nAcquireCount( 0 );
try
{
RegisterServices( xSMgr );
@@ -1865,6 +1864,9 @@ int Desktop::Main()
return EXIT_FAILURE;
}
+ // Release solar mutex just before we wait for our client to connect
+ int nAcquireCount = Application::ReleaseSolarMutex();
+
// Post user event to startup first application component window
// We have to send this OpenClients message short before execute() to
// minimize the risk that this message overtakes type detection contruction!!