diff --git a/src/net/toxme.cpp b/src/net/toxme.cpp index 9b384de6b..a615fd71b 100644 --- a/src/net/toxme.cpp +++ b/src/net/toxme.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -40,6 +41,7 @@ QByteArray Toxme::makeJsonRequest(QString url, QString json, QNetworkReply::Netw while (!reply->isFinished()) { + QThread::msleep(1); qApp->processEvents(); } @@ -66,6 +68,7 @@ QByteArray Toxme::getServerPubkey(QString url, QNetworkReply::NetworkError &erro while (!reply->isFinished()) { + QThread::msleep(1); qApp->processEvents(); }