diff options
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3140,11 +3140,12 @@ void __ofono_sim_refresh(struct ofono_sim *sim, GSList *file_list, } if (reinit_naa) { - /* Force the sim state out of READY */ - sim_free_main_state(sim); - sim->state = OFONO_SIM_STATE_RESETTING; __ofono_modem_sim_reset(__ofono_atom_get_modem(sim->atom)); + + /* Force the sim state out of READY */ + sim_free_main_state(sim); + call_state_watches(sim); } /* |