diff options
-rw-r--r-- | plugins/huawei/mm-plugin-huawei.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/huawei/mm-plugin-huawei.c b/plugins/huawei/mm-plugin-huawei.c index fb13fe77..524edb63 100644 --- a/plugins/huawei/mm-plugin-huawei.c +++ b/plugins/huawei/mm-plugin-huawei.c @@ -390,8 +390,10 @@ huawei_custom_init (MMPortProbe *probe, } /* We can run custom init in the first interface! clear the timeout as it is no longer needed */ - g_source_remove (fi_ctx->timeout_id); - fi_ctx->timeout_id = 0; + if (fi_ctx->timeout_id) { + g_source_remove (fi_ctx->timeout_id); + fi_ctx->timeout_id = 0; + } huawei_custom_init_step (ctx); } |