From 97d70764810655c48d3e7abcefddc7dff062eadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 21 Mar 2018 21:11:09 +0100 Subject: [PATCH] Increase DBus call timeout to 10 days. --- src/util/externalcommand.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/externalcommand.cpp b/src/util/externalcommand.cpp index 790eb05..100ad72 100644 --- a/src/util/externalcommand.cpp +++ b/src/util/externalcommand.cpp @@ -75,11 +75,11 @@ bool ExternalCommand::copyBlocks() connect(CoreBackendManager::self()->job(), &KAuth::ExecuteJob::newData, this, &ExternalCommand::emitReport); QDBusInterface iface(QStringLiteral("org.kde.kpmcore.helperinterface"), QStringLiteral("/Helper"), QStringLiteral("org.kde.kpmcore.externalcommand"), QDBusConnection::systemBus()); + iface.setTimeout(10 * 24 * 3600 * 1000); // 10 days if (iface.isValid()) { QDBusReply reply = iface.call(QStringLiteral("copyblocks"), CoreBackendManager::self()->Uuid(), m_Source->path(), m_Source->firstByte(), m_Source->length(), m_Target->path(), m_Target->firstByte(), blockSize); if (reply.isValid()) { rval = reply.value()[QStringLiteral("success")].toInt(); - qDebug() << rval; } else { qWarning() << reply.error().message(); @@ -164,6 +164,7 @@ void ExternalCommand::execute() } QDBusInterface iface(QStringLiteral("org.kde.kpmcore.helperinterface"), QStringLiteral("/Helper"), QStringLiteral("org.kde.kpmcore.externalcommand"), QDBusConnection::systemBus()); + iface.setTimeout(10 * 24 * 3600 * 1000); // 10 days if (iface.isValid()) { QDBusReply reply = iface.call(QStringLiteral("start"), CoreBackendManager::self()->Uuid(), cmd, args(), m_Input, QStringList()); if (reply.isValid()) {