summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2011-07-19 18:49:09 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-07-19 12:09:22 -0500
commit9751914274460ee968dc7f2427b07e3777eb4ff9 (patch)
tree0cf1f315764de50886e61190bd59134db8d681dc /src/voicecall.c
parentd3f8eae1ff08dda9a506d40ac6d92a84f098382c (diff)
downloadofono-9751914274460ee968dc7f2427b07e3777eb4ff9.tar.bz2
voicecall: close settings when SIM is removed
This also fixes the case where +BLDN uses an invalid number when the SIM is removed.
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index ce975d35..8815d9e2 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2683,6 +2683,9 @@ static void sim_state_watch(enum ofono_sim_state new_state, void *user)
free_sim_ecc_numbers(vc, FALSE);
set_new_ecc(vc);
+
+ voicecall_close_settings(vc);
+ break;
case OFONO_SIM_STATE_READY:
voicecall_load_settings(vc);
break;