Showing the changes to assignment-client/src/AssignmentClientApp.cpp (1 of 3 files). Show all
Unified · Split
| @@ -27,6 +27,10 @@ · 26 unmodified lines | |||
| 27 | AssignmentClientApp::AssignmentClientApp(int argc, char* argv[]) : | 27 | AssignmentClientApp::AssignmentClientApp(int argc, char* argv[]) : |
| 28 | QCoreApplication(argc, argv) | 28 | QCoreApplication(argc, argv) |
| 29 | { | 29 | { |
| 30 | // to work around the Qt constant wireless scanning, set the env for polling interval very high | ||
| 31 | const QByteArray EXTREME_BEARER_POLL_TIMEOUT = QString::number(INT_MAX).toLocal8Bit(); | ||
| 32 | qputenv("QT_BEARER_POLL_TIMEOUT", EXTREME_BEARER_POLL_TIMEOUT); | ||
| 33 | |||
| 30 | # ifndef WIN32 | 34 | # ifndef WIN32 |
| 31 | setvbuf(stdout, NULL, _IOLBF, 0); | 35 | setvbuf(stdout, NULL, _IOLBF, 0); |
| 32 | # endif | 36 | # endif |