Work around a bug in Qt which causes high pings for Wifi connections

See issue #1209.
This commit is contained in:
Martin Kleusberg
2017-11-18 11:47:56 +01:00
parent 514d5b703b
commit 73946400c3

View File

@@ -67,6 +67,9 @@ Application::Application(int& argc, char** argv) :
QApplication::addLibraryPath(QApplication::applicationDirPath() + "/plugins");
#endif
// Work around a bug in QNetworkAccessManager which sporadically causes high pings for Wifi connections
// See https://bugreports.qt.io/browse/QTBUG-40332
qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(INT_MAX));
// Parse command line
QString fileToOpen;