octoi: Fix client re-start after clock drift disconnect
We have to issue the OCTOI_CLNT_EV_REQUEST_SERVICE event to the FSM only after it has switched back to INIT state. Change-Id: I1d913a8153adaf87b2c3dadcf98382ff0b9fc2fb
This commit is contained in:
parent
c0fbd5a7b8
commit
d13e6a5eb9
|
@ -245,6 +245,7 @@ static int clnt_fsm_timer_cb(struct osmo_fsm_inst *fi)
|
|||
case CLNT_ST_WAIT_RECONNECT:
|
||||
LOGPFSML(fi, LOGL_INFO, "Re-starting connection\n");
|
||||
osmo_fsm_inst_state_chg(fi, CLNT_ST_INIT, 0, 0);
|
||||
osmo_fsm_inst_dispatch(fi, OCTOI_CLNT_EV_REQUEST_SERVICE, NULL);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -297,7 +298,6 @@ static void clnt_rx_alive_timer_cb(void *data)
|
|||
|
||||
reconnect:
|
||||
osmo_fsm_inst_state_chg(fi, CLNT_ST_WAIT_RECONNECT, 10, 0);
|
||||
osmo_fsm_inst_dispatch(fi, OCTOI_CLNT_EV_REQUEST_SERVICE, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue