Permalink
Browse files

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

See issue #1209.
  • Loading branch information...
MKleusberg committed Nov 18, 2017
1 parent 514d5b7 commit 73946400c32d1f7cfcd4672ab0ab3f563eb84f4e
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Application.cpp
@@ -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;

0 comments on commit 7394640

Please sign in to comment.