diff --git a/src/ui/rpc/rpcmanager.cpp b/src/ui/rpc/rpcmanager.cpp index d365481a..5efa74c1 100644 --- a/src/ui/rpc/rpcmanager.cpp +++ b/src/ui/rpc/rpcmanager.cpp @@ -419,8 +419,9 @@ bool RpcManager::waitResult() { m_resultCommand = Control::CommandNone; + int waitCount = 2; do { - if (!client()->waitForRead()) + if (!client()->waitForRead() && --waitCount <= 0) return false; } while (m_resultCommand == Control::CommandNone);