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

Merge branch 'fix_issues_with_NRF' into 'develop'

Fix issue when restart SMF (with NRF)

See merge request !41
parents 0c2292c9 9ff8681d
......@@ -343,15 +343,17 @@ smf_app::smf_app(const std::string& config_file)
start_upf_association(*it);
}
// Register to NRF (if this option is enabled)
if (smf_cfg.register_nrf) register_to_nrf();
if (smf_cfg.discover_upf) {
// Trigger NFStatusNotify subscription to be noticed when a new UPF becomes
// available (if this option is enabled)
trigger_upf_status_notification_subscribe();
}
// Register to NRF (if this option is enabled)
if (smf_cfg.register_nrf) {
unsigned int microsecond = 10000; // 10ms
usleep(microsecond);
trigger_upf_status_notification_subscribe();
register_to_nrf();
}
Logger::smf_app().startup("Started");
......
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