diff options
author | deva <deva> | 2009-02-17 12:33:24 +0000 |
---|---|---|
committer | deva <deva> | 2009-02-17 12:33:24 +0000 |
commit | df33a46c9cb253bb25d27b11f5762a69833bd67f (patch) | |
tree | 729554aaaca09fd061dc0238e1d791a4577c86a7 /client | |
parent | 4e5cc9a65ef3cdcf3b7128ae1037510385854162 (diff) |
Fixed hanging on full cpu load when trying to connect to then server, when the server is not answering.
Diffstat (limited to 'client')
-rw-r--r-- | client/netcom.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/netcom.cc b/client/netcom.cc index 18af92e..f71876a 100644 --- a/client/netcom.cc +++ b/client/netcom.cc @@ -76,7 +76,7 @@ QDomDocument NetCom::send(QString course, QString macro) // socket.waitForReadyRead(); do { - qApp->processEvents(); + qApp->processEvents(QEventLoop::WaitForMoreEvents); } while(!res_doc.setContent(buffer)); buffer = ""; @@ -145,7 +145,7 @@ void NetCom::send(QVector< Widget* > widgets, QString macro, QString version) // Wait for the (hopefully) empty answer. // do { - qApp->processEvents(); + qApp->processEvents(QEventLoop::WaitForMoreEvents); } while(!res_doc.setContent(buffer)); buffer = ""; |