mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #10491 from birarda/bug/bearer-timeout
disable the bearer poll timeout
This commit is contained in:
commit
93f3b2df45
1 changed files with 4 additions and 3 deletions
|
@ -768,9 +768,10 @@ bool similarStrings(const QString& stringA, const QString& stringB) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void disableQtBearerPoll() {
|
void disableQtBearerPoll() {
|
||||||
// to work around the Qt constant wireless scanning, set the env for polling interval very high
|
// to disable the Qt constant wireless scanning, set the env for polling interval
|
||||||
const QByteArray EXTREME_BEARER_POLL_TIMEOUT = QString::number(INT16_MAX).toLocal8Bit();
|
qDebug() << "Disabling Qt wireless polling by using a negative value for QTimer::setInterval";
|
||||||
qputenv("QT_BEARER_POLL_TIMEOUT", EXTREME_BEARER_POLL_TIMEOUT);
|
const QByteArray DISABLE_BEARER_POLL_TIMEOUT = QString::number(-1).toLocal8Bit();
|
||||||
|
qputenv("QT_BEARER_POLL_TIMEOUT", DISABLE_BEARER_POLL_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void printSystemInformation() {
|
void printSystemInformation() {
|
||||||
|
|
Loading…
Reference in a new issue