diff options
-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 |