diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-12-20 19:51:08 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-12-21 17:21:21 -0600 |
commit | d90fd381b539a2a9bf28b541153a47c70d44a3e7 (patch) | |
tree | bff5192d9d58e6c0d7e2f22ead3effa2c3ebca6e | |
parent | 9e9cc020252f99933816887c5550035c2df9867f (diff) | |
download | ofono-d90fd381b539a2a9bf28b541153a47c70d44a3e7.tar.bz2 |
huawei: cancel poll when going to a valid state
-rw-r--r-- | plugins/huawei.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/huawei.c b/plugins/huawei.c index 85a86bae..0b958ec5 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -206,6 +206,11 @@ static gboolean notify_sim_state(struct ofono_modem *modem, case HUAWEI_SIM_STATE_INVALID_CS: case HUAWEI_SIM_STATE_INVALID_PS: case HUAWEI_SIM_STATE_INVALID_PS_AND_CS: + if (data->sim_poll_timeout) { + g_source_remove(data->sim_poll_timeout); + data->sim_poll_timeout = 0; + } + /* * In the "warm start" case the modem skips * HUAWEI_SIM_STATE_INVALID_OR_LOCKED altogether, so need |