From 39f1b66cb9c26c1e7d27db3840c04c454754af7a Mon Sep 17 00:00:00 2001 From: Frank Schönheit <fs@openoffice.org> Date: Thu, 31 May 2001 08:33:17 +0000 Subject: #86416# proper guarding in startListening --- comphelper/source/property/propagg.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx index fcff4c49d597..a796dc5f333a 100644 --- a/comphelper/source/property/propagg.cxx +++ b/comphelper/source/property/propagg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: propagg.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jl $ $Date: 2001-03-22 13:32:35 $ + * last change: $Author: fs $ $Date: 2001-05-31 09:33:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -454,10 +454,10 @@ void OPropertySetAggregationHelper::setAggregation(const ::com::sun::star::uno: //------------------------------------------------------------------------------ void OPropertySetAggregationHelper::startListening() { + osl::MutexGuard aGuard(rBHelper.rMutex); + if (!m_bListening && m_xAggregateSet.is()) { - osl::MutexGuard aGuard(rBHelper.rMutex); - // als einziger Listener anmelden ::com::sun::star::uno::Sequence< ::rtl::OUString > aPropertyNames; m_xAggregateMultiSet->addPropertiesChangeListener(aPropertyNames, this); -- cgit