diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/jobs/jobexecutor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/jobs/jobexecutor.cxx b/framework/source/jobs/jobexecutor.cxx index 5578b877b028..65c7dc25ded4 100644 --- a/framework/source/jobs/jobexecutor.cxx +++ b/framework/source/jobs/jobexecutor.cxx @@ -247,9 +247,6 @@ void SAL_CALL JobExecutor::notifyEvent( const css::document::EventObject& aEvent OUString aModuleIdentifier; ::std::vector< JobData::TJob2DocEventBinding > lJobs; - /* SAFE */ { - osl::MutexGuard g(rBHelper.rMutex); - // Optimization! // Check if the given event name exist inside configuration and reject wrong requests. // This optimization suppress using of the cfg api for getting event and job descriptions. @@ -263,6 +260,9 @@ void SAL_CALL JobExecutor::notifyEvent( const css::document::EventObject& aEvent catch( const css::uno::Exception& ) {} + /* SAFE */ { + osl::MutexGuard g(rBHelper.rMutex); + // Special feature: If the events "OnNew" or "OnLoad" occurs - we generate our own event "onDocumentOpened". if ( (aEvent.EventName == "OnNew") || |