Commit c99d5a7f authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Update SMF_App destructor

parent 9e8579fc
...@@ -363,6 +363,13 @@ smf_app::smf_app(const std::string& config_file) ...@@ -363,6 +363,13 @@ smf_app::smf_app(const std::string& config_file)
Logger::smf_app().startup("Started"); Logger::smf_app().startup("Started");
} }
//------------------------------------------------------------------------------
smf_app::~smf_app() {
Logger::smf_app().debug("Delete SMF_APP instance...");
// TODO: Unregister NRF
if (smf_n4_inst) delete smf_n4_inst;
if (smf_sbi_inst) delete smf_sbi_inst;
}
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void smf_app::start_upf_association(const pfcp::node_id_t& node_id) { void smf_app::start_upf_association(const pfcp::node_id_t& node_id) {
std::time_t time_epoch = std::time(nullptr); std::time_t time_epoch = std::time(nullptr);
......
...@@ -206,11 +206,7 @@ class smf_app { ...@@ -206,11 +206,7 @@ class smf_app {
public: public:
explicit smf_app(const std::string& config_file); explicit smf_app(const std::string& config_file);
smf_app(smf_app const&) = delete; smf_app(smf_app const&) = delete;
virtual ~smf_app();
virtual ~smf_app() {
Logger::smf_app().debug("Delete SMF_APP instance...");
// TODO: Unregister NRF
}
void operator=(smf_app const&) = delete; void operator=(smf_app const&) = delete;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment