mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:57:24 +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;
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user