Merge integration refs/builds/qtci/dev/1618388786

This commit is contained in:
Qt CI Bot 2021-04-14 10:52:21 +00:00
commit b7a3aa39e7
2 changed files with 9 additions and 11 deletions

View File

@ -23,7 +23,7 @@ macro(qt_find_apple_system_frameworks)
qt_internal_find_apple_system_framework(FWSystemConfiguration SystemConfiguration)
qt_internal_find_apple_system_framework(FWUIKit UIKit)
qt_internal_find_apple_system_framework(FWCoreLocation CoreLocation)
qt_internal_find_apple_system_framework(FWCoreMotion CoreMotion)
qt_internal_find_apple_system_framework(FWWatchKit WatchKit)
qt_internal_find_apple_system_framework(FWGameController GameController)
endif()

View File

@ -305,10 +305,7 @@ QNetworkListManagerNetworkInformationBackend::~QNetworkListManagerNetworkInforma
{
if (comInitFailed)
return;
if (monitoring)
stop();
else
CoUninitialize();
stop();
}
void QNetworkListManagerNetworkInformationBackend::setConnectivity(NLM_CONNECTIVITY newConnectivity)
@ -354,12 +351,13 @@ bool QNetworkListManagerNetworkInformationBackend::start()
void QNetworkListManagerNetworkInformationBackend::stop()
{
Q_ASSERT(managerEvents);
Q_ASSERT(monitoring);
// Can return false but realistically shouldn't since that would break everything:
managerEvents->stop();
monitoring = false;
managerEvents.Reset();
if (monitoring) {
Q_ASSERT(managerEvents);
// Can return false but realistically shouldn't since that would break everything:
managerEvents->stop();
monitoring = false;
managerEvents.Reset();
}
CoUninitialize();
comInitFailed = true; // we check this value in start() to see if we need to re-initialize