forked from acouzens/open5gs
[ALL] Fix the terminate sequence (#938)
This commit is contained in:
parent
793a82020f
commit
73c3aa54c0
|
@ -84,14 +84,14 @@ void amf_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
ngap_close();
|
||||
amf_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
ngap_close();
|
||||
amf_sbi_close();
|
||||
|
||||
amf_context_final();
|
||||
ogs_sbi_context_final();
|
||||
|
||||
|
|
|
@ -77,13 +77,13 @@ void ausf_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
ausf_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
ausf_sbi_close();
|
||||
|
||||
ausf_context_final();
|
||||
ogs_sbi_context_final();
|
||||
|
||||
|
|
|
@ -82,14 +82,14 @@ void mme_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
mme_gtp_close();
|
||||
sgsap_close();
|
||||
s1ap_close();
|
||||
|
||||
mme_event_term();
|
||||
|
||||
ogs_thread_destroy(thread);
|
||||
|
||||
mme_gtp_close();
|
||||
sgsap_close();
|
||||
s1ap_close();
|
||||
|
||||
mme_fd_final();
|
||||
|
||||
mme_context_final();
|
||||
|
|
|
@ -75,13 +75,13 @@ void nrf_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
nrf_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
nrf_sbi_close();
|
||||
|
||||
nrf_context_final();
|
||||
ogs_sbi_context_final();
|
||||
|
||||
|
|
|
@ -77,13 +77,13 @@ void nssf_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
nssf_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
nssf_sbi_close();
|
||||
|
||||
nssf_context_final();
|
||||
ogs_sbi_context_final();
|
||||
|
||||
|
|
|
@ -80,13 +80,13 @@ void pcf_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
pcf_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
pcf_sbi_close();
|
||||
|
||||
ogs_dbi_final();
|
||||
|
||||
pcf_context_final();
|
||||
|
|
|
@ -74,13 +74,13 @@ void sgwc_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
sgwc_gtp_close();
|
||||
sgwc_pfcp_close();
|
||||
|
||||
sgwc_event_term();
|
||||
|
||||
ogs_thread_destroy(thread);
|
||||
|
||||
sgwc_gtp_close();
|
||||
sgwc_pfcp_close();
|
||||
|
||||
sgwc_context_final();
|
||||
|
||||
ogs_pfcp_context_final();
|
||||
|
|
|
@ -71,13 +71,13 @@ void sgwu_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
sgwu_pfcp_close();
|
||||
sgwu_gtp_close();
|
||||
|
||||
sgwu_event_term();
|
||||
|
||||
ogs_thread_destroy(thread);
|
||||
|
||||
sgwu_pfcp_close();
|
||||
sgwu_gtp_close();
|
||||
|
||||
sgwu_context_final();
|
||||
|
||||
ogs_pfcp_context_final();
|
||||
|
|
|
@ -109,15 +109,15 @@ void smf_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
smf_gtp_close();
|
||||
smf_pfcp_close();
|
||||
smf_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
smf_gtp_close();
|
||||
smf_pfcp_close();
|
||||
smf_sbi_close();
|
||||
|
||||
smf_fd_final();
|
||||
|
||||
smf_context_final();
|
||||
|
|
|
@ -77,13 +77,13 @@ void udm_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
udm_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
udm_sbi_close();
|
||||
|
||||
udm_context_final();
|
||||
ogs_sbi_context_final();
|
||||
|
||||
|
|
|
@ -80,13 +80,13 @@ void udr_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
udr_sbi_close();
|
||||
|
||||
/* Daemon terminating */
|
||||
event_termination();
|
||||
ogs_thread_destroy(thread);
|
||||
ogs_timer_delete(t_termination_holding);
|
||||
|
||||
udr_sbi_close();
|
||||
|
||||
ogs_dbi_final();
|
||||
|
||||
udr_context_final();
|
||||
|
|
|
@ -74,13 +74,13 @@ void upf_terminate(void)
|
|||
{
|
||||
if (!initialized) return;
|
||||
|
||||
upf_pfcp_close();
|
||||
upf_gtp_close();
|
||||
|
||||
upf_event_term();
|
||||
|
||||
ogs_thread_destroy(thread);
|
||||
|
||||
upf_pfcp_close();
|
||||
upf_gtp_close();
|
||||
|
||||
upf_context_final();
|
||||
|
||||
ogs_pfcp_context_final();
|
||||
|
|
Loading…
Reference in New Issue