diff --git a/kdecore/kernel/kauthorization.cpp b/kdecore/kernel/kauthorization.cpp index 2162fb0b..f53e12e5 100644 --- a/kdecore/kernel/kauthorization.cpp +++ b/kdecore/kernel/kauthorization.cpp @@ -31,7 +31,6 @@ #include #define KAUTHORIZATION_TIMEOUT 250 -#define KAUTHORIZATION_SLEEPTIME 50 // see kdebug.areas static const int s_kauthorizationarea = 185; @@ -148,7 +147,6 @@ int KAuthorization::execute(const QString &helper, const QString &method, const while (KDBusConnectionPool::isServiceRegistered(helper, QDBusConnection::systemBus())) { kDebug(s_kauthorizationarea) << "Waiting for service to unregister" << helper; QCoreApplication::processEvents(QEventLoop::AllEvents, KAUTHORIZATION_TIMEOUT); - QThread::msleep(KAUTHORIZATION_SLEEPTIME); } QDBusInterface kauthorizationinterface( @@ -159,7 +157,6 @@ int KAuthorization::execute(const QString &helper, const QString &method, const while (!reply.isFinished()) { kDebug(s_kauthorizationarea) << "Waiting for service call to finish" << helper; QCoreApplication::processEvents(QEventLoop::AllEvents, KAUTHORIZATION_TIMEOUT); - QThread::msleep(KAUTHORIZATION_SLEEPTIME); } int result = KAuthorization::NoError; if (!reply.isValid()) { diff --git a/kdeui/kernel/ktoolinvocation.cpp b/kdeui/kernel/ktoolinvocation.cpp index 42a6a364..454752a0 100644 --- a/kdeui/kernel/ktoolinvocation.cpp +++ b/kdeui/kernel/ktoolinvocation.cpp @@ -43,7 +43,6 @@ #endif #define KTOOLINVOCATION_TIMEOUT 250 -#define KTOOLINVOCATION_SLEEPTIME 50 // NOTE: keep in sync with: // kdelibs/kinit/klauncher_adaptor.h @@ -135,7 +134,6 @@ int KToolInvocation::startServiceInternal(const char *_function, kDebug() << "Waiting for klauncher call to finish" << function; while (!reply.isFinished()) { QCoreApplication::processEvents(QEventLoop::AllEvents, KTOOLINVOCATION_TIMEOUT); - QThread::msleep(KTOOLINVOCATION_SLEEPTIME); } kDebug() << "Done waiting for klauncher call to finish" << function; if (!reply.isValid()) {