diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-10-08 11:21:02 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2010-10-08 13:06:08 +0200 |
commit | 457091536c3b3540fccc8fdc299b7eec1f3ea5c7 (patch) | |
tree | b4e50960678ddfdee05ea79a6d226dddc9f18cb0 | |
parent | b8fb305c69f2831bf07d040383a247cb23e9aa3c (diff) |
remove daft sleeps on start
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index e2a6429a3b..99aa63459d 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -88,16 +88,6 @@ struct DispatchHolder Reference< XDispatch > xDispatch; }; -// Temporary code -static void impl_sleep( sal_uInt32 nSec ) -{ - TimeValue aTime; - aTime.Seconds = nSec; - aTime.Nanosec = 0; - - osl::Thread::wait( aTime ); -} - static String impl_GetFilterFromExt( OUString aUrl, SfxFilterFlags nFlags, String aAppl ) { @@ -618,16 +608,9 @@ sal_Bool DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatch // implementation via statusChanged!! if ( bEmpty && !bNoTerminate /*m_aRequestContainer.empty()*/ ) { - // Delay give a chance for threads to complete work - impl_sleep(2); - // We have to check if we have an open task otherwise we have to shutdown the office. Reference< XFramesSupplier > xTasksSupplier( xDesktop, UNO_QUERY ); aGuard.clear(); - - // Delay give a chance for threads to complete work - impl_sleep(1); - Reference< XElementAccess > xList( xTasksSupplier->getFrames(), UNO_QUERY ); if ( !xList->hasElements() ) |