diff --git a/NetworkManager.h b/NetworkManager.h index 1838c545..deeb34b0 100644 --- a/NetworkManager.h +++ b/NetworkManager.h @@ -195,6 +195,8 @@ namespace WPEFramework result["state"] = static_cast (state); _parent.Notify("onWiFiStateChange", result); _parent.m_wifiStateCache = state; + if(Exchange::INetworkManager::WiFiState::WIFI_STATE_CONNECTED == state || Exchange::INetworkManager::WiFiState::WIFI_STATE_DISCONNECTED == state) + _parent.m_primaryInterfaceCache.reset(); } void onWiFiSignalStrengthChange(const string ssid, const string signalLevel, const Exchange::INetworkManager::WiFiSignalQuality signalQuality) override