Skip to content

Commit

Permalink
Merge branch 'rdkcentral:sprint/2401' into for_checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
gururaajar authored Mar 11, 2024
2 parents 8817c48 + 122c7e9 commit 9ab21c2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Network/Network.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ namespace WPEFramework {
static Network *_instance;
static Network *getInstance() {return _instance;}
Config config;
ConnectivityMonitor& connectivityMonitor = ConnectivityMonitor::getInstance();
ConnectivityMonitor connectivityMonitor;

private:
PluginHost::IShell* m_service;
Expand Down
2 changes: 1 addition & 1 deletion Network/NetworkConnectivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,14 +542,14 @@ namespace WPEFramework {

bool ConnectivityMonitor::stopContinuousConnectivityMonitoring()
{
LOGINFO("Entry");
if (!isMonitorThreadRunning())
{
LOGWARN("Connectivity monitor not running");
return false;
}
cv_.notify_all();
stopFlag = true;
LOGINFO("stoping connectivityMonitor...");

if (thread_.joinable())
{
Expand Down
7 changes: 1 addition & 6 deletions Network/NetworkConnectivity.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ namespace WPEFramework {

class ConnectivityMonitor : public Connectivity {
public:
static ConnectivityMonitor& getInstance() {
static ConnectivityMonitor instance;
return instance;
}

bool isConnectedToInternet(nsm_ipversion ipversion);
nsm_internetState getInternetConnectionState(nsm_ipversion ipversion);
std::string getCaptivePortalURI();
Expand All @@ -119,7 +114,6 @@ namespace WPEFramework {
void signalConnectivityMonitor();
void resetConnectivityCache() { g_internetState = nsm_internetState::UNKNOWN;}

private:
ConnectivityMonitor() : stopFlag(false), threadRunning(false), isContinuesMonitoringNeeded(false)
{
setConnectivityMonitorEndpoints(getConnectivityDefaultEndpoints());
Expand All @@ -129,6 +123,7 @@ namespace WPEFramework {
LOGINFO("~ConnectivityMonitor");
stopContinuousConnectivityMonitoring();
}
private:

std::vector<std::string> getConnectivityMonitorEndpoints();
ConnectivityMonitor(const ConnectivityMonitor&) = delete;
Expand Down
6 changes: 3 additions & 3 deletions PersistentStore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

cmake_minimum_required(VERSION 3.14)

project(PersistentStore)
set(PLUGIN_NAME PersistentStore)
set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME})

set(CMAKE_CXX_STANDARD 11)

find_package(WPEFramework)
set(MODULE_NAME "${NAMESPACE}${PROJECT_NAME}")

set(PLUGIN_PERSISTENTSTORE_MODE "Off" CACHE STRING "Controls if the plugin should run in its own process, in process or remote")
set(PLUGIN_PERSISTENTSTORE_URI "ss.eu.prod.developer.comcast.com:443" CACHE STRING "Account scope endpoint")
Expand Down Expand Up @@ -67,4 +67,4 @@ endif ()
install(TARGETS ${MODULE_NAME}
DESTINATION lib/${STORAGE_DIRECTORY}/plugins)

write_config()
write_config(${PLUGIN_NAME})

0 comments on commit 9ab21c2

Please sign in to comment.