Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cdp: reworked switch for setting x->state = ACC_CC_ST_DISCON
  • Loading branch information
miconda committed May 31, 2023
1 parent 1205869 commit cb63329
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/cdp/acctstatemachine.c
Expand Up @@ -221,8 +221,12 @@ int cc_acc_client_stateful_sm_process(
case ACC_CC_EV_RECV_ANS_SUCCESS:
x->state = ACC_CC_ST_DISCON;
// update_gsu_response_timers(x, msg);
x->discon_time = time(0);
break;
case ACC_CC_EV_RECV_ANS_UNSUCCESS:
x->state = ACC_CC_ST_DISCON;
x->discon_time = time(0);
break;
default:
LM_DBG("Received event [%d] in state [%d] - cleaning up "
"session regardless\n",
Expand Down

0 comments on commit cb63329

Please sign in to comment.