diff --git a/LegacyPlugin_NetworkAPIs.cpp b/LegacyPlugin_NetworkAPIs.cpp index 7ac3ca9c..482522d2 100644 --- a/LegacyPlugin_NetworkAPIs.cpp +++ b/LegacyPlugin_NetworkAPIs.cpp @@ -864,6 +864,11 @@ const string CIDR_PREFIXES[CIDR_NETMASK_IP_LEN] = { m_timer.stop(); NMLOG_INFO("subscriber timer stoped"); } + else + { + m_timer.start(SUBSCRIPTION_TIMEOUT_IN_MILLISECONDS); + NMLOG_INFO("subscriber timer started"); + } } string Network::getInterfaceMapping(const string & interface) diff --git a/LegacyPlugin_WiFiManagerAPIs.cpp b/LegacyPlugin_WiFiManagerAPIs.cpp index 0aa9596c..b003d60d 100644 --- a/LegacyPlugin_WiFiManagerAPIs.cpp +++ b/LegacyPlugin_WiFiManagerAPIs.cpp @@ -544,6 +544,11 @@ namespace WPEFramework m_timer.stop(); NMLOG_INFO("subscriber timer stoped"); } + else + { + m_timer.start(SUBSCRIPTION_TIMEOUT_IN_MILLISECONDS); + NMLOG_INFO("subscriber timer started"); + } } bool WiFiManager::ErrorCodeMapping(const uint32_t ipvalue, uint32_t &opvalue)