diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-15 16:39:44 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-15 16:49:43 -0500 |
commit | 88be6109a280a9746319c1e74987603dc09f4d82 (patch) | |
tree | 16f65a9727facbde13403221811fb4dc87feff02 /src | |
parent | 214c7dd7766607d0c8781610252f58c8a5679f69 (diff) | |
download | ofono-88be6109a280a9746319c1e74987603dc09f4d82.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modem.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c index d2bc8256..8319702e 100644 --- a/src/modem.c +++ b/src/modem.c @@ -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) |