diff --git a/lib/pfcp/context.h b/lib/pfcp/context.h index abfb54261a..87b44c7396 100644 --- a/lib/pfcp/context.h +++ b/lib/pfcp/context.h @@ -112,8 +112,6 @@ typedef struct ogs_pfcp_node_s { ogs_pfcp_up_function_features_t up_function_features; int up_function_features_len; - - bool already_associated; } ogs_pfcp_node_t; typedef enum { diff --git a/src/sgwc/pfcp-sm.c b/src/sgwc/pfcp-sm.c index 544e23bd55..48ce13fd6f 100644 --- a/src/sgwc/pfcp-sm.c +++ b/src/sgwc/pfcp-sm.c @@ -175,10 +175,7 @@ void sgwc_pfcp_state_associated(ogs_fsm_t *s, sgwc_event_t *e) ogs_timer_start(node->t_no_heartbeat, ogs_app()->time.message.pfcp.no_heartbeat_duration); - if (node->already_associated) { - sgwc_pfcp_resend_established_sessions(node); - } - node->already_associated = true; + sgwc_pfcp_resend_established_sessions(node); stats_update_sgwc_pfcp_nodes(); diff --git a/src/smf/pfcp-sm.c b/src/smf/pfcp-sm.c index 4bf8fded54..cfe050b45e 100644 --- a/src/smf/pfcp-sm.c +++ b/src/smf/pfcp-sm.c @@ -177,10 +177,7 @@ void smf_pfcp_state_associated(ogs_fsm_t *s, smf_event_t *e) ogs_timer_start(node->t_no_heartbeat, ogs_app()->time.message.pfcp.no_heartbeat_duration); - if (node->already_associated) { - smf_epc_pfcp_resend_established_sessions(node); - } - node->already_associated = true; + smf_epc_pfcp_resend_established_sessions(node); stats_update_smf_pfcp_nodes();