Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion MaintenanceManager/MaintenanceManager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**

Check failure on line 1 in MaintenanceManager/MaintenanceManager.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'MaintenanceManager/MaintenanceManager.cpp' (Match: rdkcentral/rdkservices/1, 2696 lines, url: https://github.com/rdkcentral/rdkservices/archive/GRT_v1.tar.gz, file: MaintenanceManager/MaintenanceManager.cpp)
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
Expand Down Expand Up @@ -694,7 +694,29 @@

string query = "token=" + token;
Core::SystemInfo::SetEnvironment(_T("THUNDER_ACCESS"), _T(SERVER_DETAILS));
thunder_client = new WPEFramework::JSONRPC::LinkType<Core::JSON::IElement>(callsign, "", false, query);
//thunder_client = new WPEFramework::JSONRPC::LinkType<Core::JSON::IElement>(callsign, "", false, query);
try
{
thunder_client = new WPEFramework::JSONRPC::LinkType<Core::JSON::IElement>(callsign, "", false, query);
if (thunder_client == nullptr)
{
MM_LOGERR("Failed to create thunder client for %s", callsign);
}
else
{
MM_LOGINFO("Successfully created thunder client for %s", callsign);
}
}
catch (const std::exception& e)
{
MM_LOGERR("Exception occurred while creating thunder client for %s: %s", callsign, e.what());
thunder_client = nullptr;
}
catch (...)
{
MM_LOGERR("Unknown exception occurred while creating thunder client for %s", callsign);
thunder_client = nullptr;
}
return thunder_client;
}

Expand Down
Loading