UI: RpcManager: Try to wait server response several times

This commit is contained in:
Nodir Temirkhodjaev 2023-02-04 16:08:08 +03:00
parent 2b6291d4b8
commit 769e688413

View File

@ -419,8 +419,9 @@ bool RpcManager::waitResult()
{ {
m_resultCommand = Control::CommandNone; m_resultCommand = Control::CommandNone;
int waitCount = 2;
do { do {
if (!client()->waitForRead()) if (!client()->waitForRead() && --waitCount <= 0)
return false; return false;
} while (m_resultCommand == Control::CommandNone); } while (m_resultCommand == Control::CommandNone);