From bb726e6deb7970ab757db2f80745135b415a54c0 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Wed, 10 May 2017 15:25:21 +0100 Subject: [PATCH] #4132 Disable Qt Bearer management --- src/gui/src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/src/main.cpp b/src/gui/src/main.cpp index cf4d0c1e..fe09ed3e 100644 --- a/src/gui/src/main.cpp +++ b/src/gui/src/main.cpp @@ -32,7 +32,10 @@ #if defined(Q_OS_MAC) #include +#endif +#ifdef Q_OS_DARWIN +#include #endif class QThreadImpl : public QThread @@ -52,6 +55,10 @@ bool checkMacAssistiveDevices(); int main(int argc, char* argv[]) { +#ifdef Q_OS_DARWIN + /* Workaround for QTBUG-40332 - "High ping when QNetworkAccessManager is instantiated" */ + ::setenv ("QT_BEARER_POLL_TIMEOUT", "-1", 1); +#endif QCoreApplication::setOrganizationName("Synergy"); QCoreApplication::setOrganizationDomain("http://symless.com/"); QCoreApplication::setApplicationName("Synergy");