From 5df6dae529a62e8cf6bf7d9d61a18d88bf8af4db Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 18 Jan 2017 16:04:16 +0100 Subject: Longer timeout so we have time to attach a debugger --- common/resourceaccess.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'common/resourceaccess.cpp') diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 4885b9f..50845ac 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp @@ -166,13 +166,12 @@ KAsync::Job ResourceAccess::Private::tryToConnect() auto counter = QSharedPointer::create(0); return KAsync::doWhile( [this, counter]() { - SinkTrace() << "Loop"; return connectToServer(resourceInstanceIdentifier) .then>( [this, counter](const KAsync::Error &error, const QSharedPointer &s) { if (error) { static int waitTime = 10; - static int timeout = 500; + static int timeout = 20000; static int maxRetries = timeout / waitTime; if (*counter > maxRetries) { SinkTrace() << "Giving up"; @@ -213,8 +212,8 @@ KAsync::Job ResourceAccess::Private::initializeSocket() if (QProcess::startDetached("sink_synchronizer", args, QDir::homePath(), &pid)) { SinkTrace() << "Started resource " << pid; return tryToConnect() - .onError([this](const KAsync::Error &error) { - SinkWarning() << "Failed to connect to started resource"; + .onError([this, args](const KAsync::Error &error) { + SinkWarning() << "Failed to connect to started resource: sink_synchronizer " << args; }); } else { SinkWarning() << "Failed to start resource"; -- cgit v1.2.3