From 9cb624e6819146893553615bd7a6bcfb38b17179 Mon Sep 17 00:00:00 2001 From: Mykola Baibuz Date: Wed, 20 Mar 2024 22:53:56 +0200 Subject: [PATCH] Increase timeout for IPC command --- client/core/ipcclient.cpp | 2 +- client/protocols/openvpnprotocol.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/core/ipcclient.cpp b/client/core/ipcclient.cpp index 2bb0613a..3e364452 100644 --- a/client/core/ipcclient.cpp +++ b/client/core/ipcclient.cpp @@ -71,7 +71,7 @@ QSharedPointer IpcClient::CreatePrivilegedProcess() } QRemoteObjectPendingReply futureResult = Instance()->m_ipcClient->createPrivilegedProcess(); - futureResult.waitForFinished(1000); + futureResult.waitForFinished(5000); int pid = futureResult.returnValue(); diff --git a/client/protocols/openvpnprotocol.cpp b/client/protocols/openvpnprotocol.cpp index 5f8db625..1d728cf6 100644 --- a/client/protocols/openvpnprotocol.cpp +++ b/client/protocols/openvpnprotocol.cpp @@ -217,7 +217,7 @@ ErrorCode OpenVpnProtocol::start() return ErrorCode::AmneziaServiceConnectionFailed; } - m_openVpnProcess->waitForSource(1000); + m_openVpnProcess->waitForSource(5000); if (!m_openVpnProcess->isInitialized()) { qWarning() << "IpcProcess replica is not connected!"; setLastError(ErrorCode::AmneziaServiceConnectionFailed);