Skip to content

Commit

Permalink
remove already_associated variable (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencersevilla authored Jan 4, 2024
1 parent 488e7b0 commit 2e0e4c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions lib/pfcp/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 1 addition & 4 deletions src/sgwc/pfcp-sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
5 changes: 1 addition & 4 deletions src/smf/pfcp-sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 2e0e4c6

Please sign in to comment.