Fix: Don't crash by calling sim watch too early

The modem sim watch is only watching for removed and ready conditions,
so no need to call it prematurely
This commit is contained in:
Denis Kenzior 2010-04-15 16:39:44 -05:00
parent 214c7dd776
commit 88be6109a2
1 changed files with 0 additions and 1 deletions

View File

@ -1161,7 +1161,6 @@ static void sim_watch(struct ofono_atom *atom,
modem->sim_ready_watch = ofono_sim_add_state_watch(modem->sim,
modem_sim_ready,
modem, NULL);
modem_sim_ready(modem, ofono_sim_get_state(modem->sim));
}
int ofono_modem_register(struct ofono_modem *modem)