--- plugins/huawei.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/plugins/huawei.c b/plugins/huawei.c index 0c8d8c0..bff1343 100644 --- a/plugins/huawei.c +++ b/plugins/huawei.c @@ -205,6 +205,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 -- 1.7.3.4