plugins/allowed-apns: remove dbus interface when modem disappear

Previous a disappeared modem still shows the following methods:
org.ofono.AllowedAccessPoints.GetAllowedAccessPoints
This commit is contained in:
Alexander Couzens 2017-07-25 19:30:29 +02:00
parent b5f179b40a
commit 55d2d802c4
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,7 @@ static void sim_watch(struct ofono_atom *atom,
if (cond == OFONO_ATOM_WATCH_CONDITION_UNREGISTERED) {
if (ctx->simwatch_id) {
sim_state_watch(OFONO_SIM_STATE_NOT_PRESENT, data);
ofono_sim_remove_state_watch(ctx->sim, ctx->simwatch_id);
ctx->simwatch_id = 0;
}