mirror of
https://github.com/tnodir/fort
synced 2024-11-15 05:36:09 +00:00
UI: RpcManager: Try to wait server response several times
This commit is contained in:
parent
2b6291d4b8
commit
769e688413
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user