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 | c289a297e01cb1029864a61f5bf4f93df88948c9 (patch) | |
tree | 76c77d29121a5c5fe8b10e873dd300cd59ca6c7e | |
parent | 30155e222bb9ed283a6fca0ebfce375f6ea2bd67 (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 01be477e637a..564b0085daa2 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() ) |