From df33a46c9cb253bb25d27b11f5762a69833bd67f Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 17 Feb 2009 12:33:24 +0000 Subject: Fixed hanging on full cpu load when trying to connect to then server, when the server is not answering. --- client/netcom.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') 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 = ""; -- cgit v1.2.3